mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
protobuf: remove leading underscores from protobuf structs
Fixes: #1560 The latest protobuf-c compiler breaks CRIU because they removed leading underscores from structs in 1.4.0. This replaces those definitions with the standard generated structs. v2: remove struct _VmaEntry, struct _CredsEntry and struct _CoreEntry Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
This commit is contained in:
parent
efb9fccd41
commit
694eafa1f6
7 changed files with 14 additions and 15 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "version.h"
|
||||
#include "rpc.pb-c.h"
|
||||
|
||||
#ifdef __GNUG__
|
||||
extern "C" {
|
||||
|
|
@ -112,7 +113,7 @@ void criu_set_pidfd_store_sk(int sk);
|
|||
* some non-existing one is reported.
|
||||
*/
|
||||
|
||||
typedef struct _CriuNotify *criu_notify_arg_t;
|
||||
typedef CriuNotify *criu_notify_arg_t;
|
||||
void criu_set_notify_cb(int (*cb)(char *action, criu_notify_arg_t na));
|
||||
|
||||
/* Get pid of root task. 0 if not available */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue