Tor  0.4.7.0-alpha-dev
Data Structures | Macros | Typedefs
msgtypes.h File Reference

Types used for messages in the dispatcher code. More...

#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 void(* recv_fn_t) (const msg_t *m)
 

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

◆ 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.