- typedefs changed
This commit is contained in:
@@ -33,12 +33,12 @@
|
||||
#include <utils/allocator.h>
|
||||
#include <utils/logger_manager.h>
|
||||
|
||||
typedef struct private_receiver_t private_receiver_t;
|
||||
|
||||
/**
|
||||
* Private data of a receiver object
|
||||
*/
|
||||
typedef struct private_receiver_s private_receiver_t;
|
||||
|
||||
struct private_receiver_s {
|
||||
struct private_receiver_t {
|
||||
/**
|
||||
* Public part of a receiver object
|
||||
*/
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct receiver_t receiver_t;
|
||||
|
||||
/**
|
||||
* @brief A Receiver object which receives packets on the socket and adds them to the job-queue
|
||||
*/
|
||||
typedef struct receiver_s receiver_t;
|
||||
|
||||
struct receiver_s {
|
||||
struct receiver_t {
|
||||
|
||||
/**
|
||||
* @brief Destroys a receiver object
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
/**
|
||||
* Private data of a scheduler object
|
||||
*/
|
||||
typedef struct private_scheduler_s private_scheduler_t;
|
||||
typedef struct private_scheduler_t private_scheduler_t;
|
||||
|
||||
struct private_scheduler_s {
|
||||
struct private_scheduler_t {
|
||||
/**
|
||||
* Public part of a scheduler object
|
||||
*/
|
||||
|
||||
@@ -25,15 +25,15 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct scheduler_t scheduler_t;
|
||||
|
||||
/**
|
||||
* @brief The scheduler, looks for timed events in event-queue and adds them
|
||||
* to the job-queue.
|
||||
*
|
||||
* Starts a thread which does the work, since event-queue is blocking
|
||||
*/
|
||||
typedef struct scheduler_s scheduler_t;
|
||||
|
||||
struct scheduler_s {
|
||||
struct scheduler_t {
|
||||
|
||||
/**
|
||||
* @brief Destroys a scheduler object
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
#include <utils/allocator.h>
|
||||
#include <utils/logger_manager.h>
|
||||
|
||||
typedef struct private_sender_t private_sender_t;
|
||||
|
||||
/**
|
||||
* Private data of a sender object
|
||||
*/
|
||||
typedef struct private_sender_s private_sender_t;
|
||||
|
||||
struct private_sender_s {
|
||||
struct private_sender_t {
|
||||
/**
|
||||
* Public part of a sender object
|
||||
*/
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct sender_t sender_t;
|
||||
|
||||
/**
|
||||
* @brief A Sender object which sends packets on the socket
|
||||
*/
|
||||
typedef struct sender_s sender_t;
|
||||
|
||||
struct sender_s {
|
||||
struct sender_t {
|
||||
|
||||
/**
|
||||
* @brief Destroys a sender object
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
#include <utils/allocator.h>
|
||||
#include <utils/logger.h>
|
||||
|
||||
typedef struct private_thread_pool_t private_thread_pool_t;
|
||||
|
||||
/**
|
||||
* @brief structure with private members for thread_pool_t
|
||||
*/
|
||||
typedef struct private_thread_pool_s private_thread_pool_t;
|
||||
|
||||
struct private_thread_pool_s {
|
||||
struct private_thread_pool_t {
|
||||
/**
|
||||
* inclusion of public members
|
||||
*/
|
||||
|
||||
@@ -27,15 +27,16 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
|
||||
typedef struct thread_pool_t thread_pool_t;
|
||||
|
||||
/**
|
||||
* @brief A thread_pool contains a pool of threads processing the job queue.
|
||||
*
|
||||
* Current implementation uses as many threads as specified in constructor.
|
||||
* A more improved version would dynamically increase thread count if necessary...
|
||||
*/
|
||||
typedef struct thread_pool_s thread_pool_t;
|
||||
|
||||
struct thread_pool_s {
|
||||
struct thread_pool_t {
|
||||
/**
|
||||
* @brief return currently instanciated threads
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user