tor  0.4.2.0-alpha-dev
Data Structures | Macros | Typedefs
msgtypes.h File Reference
#include <stdint.h>
#include "ext/tor_queue.h"

Go to the source code of this file.

Data Structures

union  msg_aux_data_t
 
struct  msg_t
 
struct  dispatch_typefns_t
 

Macros

#define ERROR_ID   65535
 

Typedefs

typedef uint16_t subsys_id_t
 
typedef uint16_t channel_id_t
 
typedef uint16_t message_id_t
 
typedef uint16_t msg_type_id_t
 
typedef struct msg_t msg_t
 
typedef void(* recv_fn_t) (const msg_t *m)
 
typedef struct dispatch_typefns_t dispatch_typefns_t
 

Detailed Description

Types used for messages in the dispatcher code.

Definition in file msgtypes.h.

Macro Definition Documentation

◆ ERROR_ID

#define ERROR_ID   65535

An ID value returned for *_type_t when none exists.

Definition at line 34 of file msgtypes.h.

Typedef Documentation

◆ dispatch_typefns_t

Table of functions to use for a given C type. Any omitted (NULL) functions will be treated as no-ops.

◆ msg_t

typedef struct msg_t msg_t

Structure of a received message.

◆ msg_type_id_t

typedef uint16_t msg_type_id_t

This identifies a C type that can be sent along with a message.

Definition at line 29 of file msgtypes.h.

◆ recv_fn_t

typedef void(* recv_fn_t) (const msg_t *m)

A function that a subscriber uses to receive a message.

Definition at line 66 of file msgtypes.h.

◆ subsys_id_t

typedef uint16_t subsys_id_t

These types are aliases for subsystems, channels, and message IDs.

Definition at line 22 of file msgtypes.h.