MOS Source Code
Loading...
Searching...
No Matches
decode_msgid.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <pb_decode.h>
#include "msgid_example.pb.h"
#include "test_helpers.h"
+ Include dependency graph for decode_msgid.c:

Go to the source code of this file.

Macros

#define PB_MSG(id, len, name)
 

Functions

bool read_prefix (pb_istream_t *stream, int *msgid)
 
bool handle_MyMessage1 (pb_istream_t *stream)
 
bool handle_MyMessage2 (pb_istream_t *stream)
 
bool handle_MyMessage3 (pb_istream_t *stream)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ PB_MSG

#define PB_MSG ( id,
len,
name )
Value:
case id: status = handle_ ## name(&stream); break;
const char * name
Definition slab.c:31

Function Documentation

◆ read_prefix()

bool read_prefix ( pb_istream_t * stream,
int * msgid )

Definition at line 10 of file decode_msgid.c.

Referenced by main().

+ Here is the call graph for this function:

◆ handle_MyMessage1()

bool handle_MyMessage1 ( pb_istream_t * stream)

Definition at line 23 of file decode_msgid.c.

+ Here is the call graph for this function:

◆ handle_MyMessage2()

bool handle_MyMessage2 ( pb_istream_t * stream)

Definition at line 34 of file decode_msgid.c.

+ Here is the call graph for this function:

◆ handle_MyMessage3()

bool handle_MyMessage3 ( pb_istream_t * stream)

Definition at line 46 of file decode_msgid.c.

+ Here is the call graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Definition at line 57 of file decode_msgid.c.

+ Here is the call graph for this function: