Commit 3a0ff651 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

protobuf: Cleanup typedefs a bit

No need to pollute typedef out of structure
statement since we don't use it in that form.
Simply typedef in place. And align members
while we're at it.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a06488ec
...@@ -29,24 +29,21 @@ ...@@ -29,24 +29,21 @@
#define INET_ADDR_LEN 40 #define INET_ADDR_LEN 40
struct pb_pr_field_s { typedef struct {
void *data; void *data;
int number; int number;
int depth; int depth;
int count; int count;
char fmt[32]; char fmt[32];
}; } pb_pr_field_t;
typedef struct pb_pr_field_s pb_pr_field_t; typedef struct {
void *arg;
struct pb_pr_ctrl_s { int single_entry;
void *arg; const char *pretty_fmt;
int single_entry; pb_pr_field_t cur;
const char *pretty_fmt; } pb_pr_ctl_t;
pb_pr_field_t cur;
};
typedef struct pb_pr_ctrl_s pb_pr_ctl_t;
typedef int (*pb_pr_show_t)(pb_pr_field_t *field); typedef int (*pb_pr_show_t)(pb_pr_field_t *field);
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment