MOS Source Code
Loading...
Searching...
No Matches
decode_unittests.c File Reference
#include "pb_common.c"
#include "pb_decode.c"
#include <stdio.h>
#include <string.h>
#include "unittests.h"
#include "unittestproto.pb.h"
+ Include dependency graph for decode_unittests.c:

Go to the source code of this file.

Macros

#define PB_ENABLE_MALLOC
 
#define S(x)
 

Functions

bool stream_callback (pb_istream_t *stream, uint8_t *buf, size_t count)
 
bool callback_check (pb_istream_t *stream, const pb_field_t *field, void **arg)
 
int main ()
 

Macro Definition Documentation

◆ PB_ENABLE_MALLOC

#define PB_ENABLE_MALLOC

Definition at line 2 of file decode_unittests.c.

◆ S

#define S ( x)
Value:
pb_istream_from_buffer((uint8_t*)x, sizeof(x) - 1)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
Definition pb_decode.c:143
unsigned char uint8_t
Definition pb_syshdr.h:20

Definition at line 11 of file decode_unittests.c.

Referenced by main().

Function Documentation

◆ stream_callback()

bool stream_callback ( pb_istream_t * stream,
uint8_t * buf,
size_t count )

Definition at line 13 of file decode_unittests.c.

Referenced by main().

+ Here is the call graph for this function:

◆ callback_check()

bool callback_check ( pb_istream_t * stream,
const pb_field_t * field,
void ** arg )

Definition at line 24 of file decode_unittests.c.

Referenced by main().

+ Here is the call graph for this function:

◆ main()

int main ( void )

Definition at line 42 of file decode_unittests.c.

+ Here is the call graph for this function: