Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
47266dd0
Commit
47266dd0
authored
Aug 07, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pb: Move pb callback types to .c file
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
657a544f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
protobuf.h
include/protobuf.h
+0
-5
protobuf.c
protobuf.c
+5
-0
No files found.
include/protobuf.h
View file @
47266dd0
...
@@ -57,11 +57,6 @@ enum {
...
@@ -57,11 +57,6 @@ enum {
* to match this typedefs.
* to match this typedefs.
*/
*/
typedef
size_t
(
*
pb_getpksize_t
)(
void
*
obj
);
typedef
size_t
(
*
pb_pack_t
)(
void
*
obj
,
void
*
where
);
typedef
void
*
(
*
pb_unpack_t
)(
void
*
allocator
,
size_t
size
,
void
*
from
);
typedef
void
(
*
pb_free_t
)(
void
*
obj
,
void
*
allocator
);
void
cr_pb_init
(
void
);
void
cr_pb_init
(
void
);
extern
int
do_pb_read_one
(
int
fd
,
void
**
objp
,
int
type
,
bool
eof
);
extern
int
do_pb_read_one
(
int
fd
,
void
**
objp
,
int
type
,
bool
eof
);
...
...
protobuf.c
View file @
47266dd0
...
@@ -44,6 +44,11 @@
...
@@ -44,6 +44,11 @@
#include "protobuf/netdev.pb-c.h"
#include "protobuf/netdev.pb-c.h"
#include "protobuf/tcp-stream.pb-c.h"
#include "protobuf/tcp-stream.pb-c.h"
typedef
size_t
(
*
pb_getpksize_t
)(
void
*
obj
);
typedef
size_t
(
*
pb_pack_t
)(
void
*
obj
,
void
*
where
);
typedef
void
*
(
*
pb_unpack_t
)(
void
*
allocator
,
size_t
size
,
void
*
from
);
typedef
void
(
*
pb_free_t
)(
void
*
obj
,
void
*
allocator
);
struct
cr_pb_message_desc
{
struct
cr_pb_message_desc
{
pb_getpksize_t
getpksize
;
pb_getpksize_t
getpksize
;
pb_pack_t
pack
;
pb_pack_t
pack
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment