MOS Source Code
Loading...
Searching...
No Matches
encode_cyclic_callback.c File Reference
#include <pb_encode.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "cyclic_callback.pb.h"
Include dependency graph for encode_cyclic_callback.c:

Go to the source code of this file.

Functions

static char * find_end_of_item (char *p)
static bool encode_tree (pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
static bool encode_dictionary (pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
int main (int argc, char *argv[])

Function Documentation

◆ find_end_of_item()

char * find_end_of_item ( char * p)
static

Definition at line 15 of file encode_cyclic_callback.c.

Referenced by encode_dictionary(), and encode_tree().

◆ encode_tree()

bool encode_tree ( pb_ostream_t * stream,
const pb_field_t * field,
void *const * arg )
static

Definition at line 33 of file encode_cyclic_callback.c.

Referenced by encode_dictionary(), and encode_tree().

Here is the call graph for this function:

◆ encode_dictionary()

bool encode_dictionary ( pb_ostream_t * stream,
const pb_field_t * field,
void *const * arg )
static

Definition at line 61 of file encode_cyclic_callback.c.

Referenced by encode_dictionary(), and main().

Here is the call graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 123 of file encode_cyclic_callback.c.

Here is the call graph for this function: