|
trafilo 0.1.0
Streaming event-handler framework in C
|
#include "headers/bounded_queue.h"#include "headers/hashmap.h"#include "headers/window.h"#include "headers/socket.h"#include "headers/dispatcher.h"#include "../include/trafilo.h"Data Structures | |
| struct | trafilo_t |
Macros | |
| #define | QUEUE_CAPACITY 4096 |
| #define | MAX_LINE 2048 |
Functions | |
| static int | validate_config (const trafilo_config_t *config) |
| Validate the trafilo_config_t state. | |
| trafilo_t * | trafilo_create (const trafilo_config_t *config) |
| Create a framework instance. | |
| int | trafilo_run (trafilo_t *trafilo) |
| Run the framework. Blocks until trafilo_shutdown() is called. | |
| void | trafilo_shutdown (trafilo_t *trafilo) |
| Signal the framework to shut down. | |
| void | trafilo_destroy (trafilo_t *trafilo) |
| Free all resources. | |
| int | trafilo_emit (trafilo_t *trafilo, const char *raw_line, size_t len) |
| Push a raw line into the framework's queue, bypassing the socket. | |
| #define MAX_LINE 2048 |
| #define QUEUE_CAPACITY 4096 |
| trafilo_t * trafilo_create | ( | const trafilo_config_t * | config | ) |
Create a framework instance.
| config | Pointer to the configuration struct. |
| void trafilo_destroy | ( | trafilo_t * | t | ) |
Free all resources.
| t | The framework instance. |
| int trafilo_emit | ( | trafilo_t * | t, |
| const char * | raw, | ||
| size_t | len ) |
Push a raw line into the framework's queue, bypassing the socket.
| t | The framework instance. |
| raw | Raw line data. |
| len | Length of the raw line. |
| int trafilo_run | ( | trafilo_t * | trafilo | ) |
Run the framework. Blocks until trafilo_shutdown() is called.
| trafilo | The framework instance. |
| void trafilo_shutdown | ( | trafilo_t * | trafilo | ) |
Signal the framework to shut down.
| trafilo | The framework instance. |
|
static |
Validate the trafilo_config_t state.
| config | The configuration state |