Lines Matching refs:person
1 /* A very simple decoding test case, using person.proto.
11 #include "person.pb.h"
19 Person person;
21 if (!pb_decode(stream, Person_fields, &person))
26 printf("name: \"%s\"\n", person.name);
27 printf("id: %ld\n", (long)person.id);
29 if (person.has_email)
30 printf("email: \"%s\"\n", person.email);
32 for (i = 0; i < person.phone_count; i++)
34 Person_PhoneNumber *phone = &person.phone[i];