Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
channel.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <liblfds711.h>
#include "constants.h"
Include dependency graph for channel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  channel_bss_msg_s
 
struct  channel_bss_queue_s
 
struct  channel_bss_s
 
struct  channel_log_msg_s
 
struct  channel_log_s
 

Typedefs

typedef enum channel_bss_ops_e channel_bss_ops_t
 
typedef struct channel_bss_msg_s channel_bss_msg_t
 
typedef struct channel_bss_queue_s channel_bss_queue_t
 
typedef struct channel_bss_s channel_bss_t
 
typedef struct channel_log_msg_s channel_log_msg_t
 
typedef struct channel_log_s channel_log_t
 

Enumerations

enum  channel_bss_ops_e { CH_OP_RES_SET_RESOURCE1 = 0 , CH_OP_RES_SET_RESOURCE2 , CH_OP_QUERY_LOG_FLIP }
 

Functions

channel_bss_msg_tchannel_bss_msg_create (uint64_t id, channel_bss_ops_t op, void *p)
 
void channel_bss_msg_release (channel_bss_msg_t *msg)
 
int channel_bss_send (channel_bss_t *ch, channel_bss_msg_t *msg)
 
int channel_bss_recv (channel_bss_t *ch, channel_bss_msg_t **msg)
 
int channel_bssvl_send (channel_bss_t *ch, channel_bss_msg_t *msg)
 
int channel_bssvl_recv (channel_bss_t *ch, channel_bss_msg_t **msg)
 
uint64_t channel_bss_assign_msg_id (uint64_t *id_base)
 
channel_log_msg_tchannel_log_msg_create (uint32_t log_msg_id, char *log_msg, bool exit)
 
void channel_log_msg_release (channel_log_msg_t *msg)
 
int channel_log_send (channel_log_t *ch, channel_log_msg_t *msg)
 
int channel_log_recv (channel_log_t *ch, channel_log_msg_t **msg)
 

Detailed Description

Author
Faruk Grozdanic

Copyright (c) 2025 Faruk Grozdanic

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.