mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
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: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
a06488ec10
commit
3a0ff651db
1 changed files with 13 additions and 16 deletions
29
protobuf.c
29
protobuf.c
|
|
@ -29,24 +29,21 @@
|
|||
|
||||
#define INET_ADDR_LEN 40
|
||||
|
||||
struct pb_pr_field_s {
|
||||
void *data;
|
||||
int number;
|
||||
int depth;
|
||||
int count;
|
||||
char fmt[32];
|
||||
};
|
||||
typedef struct {
|
||||
void *data;
|
||||
int number;
|
||||
int depth;
|
||||
int count;
|
||||
char fmt[32];
|
||||
} pb_pr_field_t;
|
||||
|
||||
typedef struct pb_pr_field_s pb_pr_field_t;
|
||||
typedef struct {
|
||||
void *arg;
|
||||
int single_entry;
|
||||
const char *pretty_fmt;
|
||||
pb_pr_field_t cur;
|
||||
} pb_pr_ctl_t;
|
||||
|
||||
struct pb_pr_ctrl_s {
|
||||
void *arg;
|
||||
int single_entry;
|
||||
const char *pretty_fmt;
|
||||
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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue