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:
Zeyad Yasser 2021-07-22 11:39:34 +02:00 committed by Andrei Vagin
parent efb9fccd41
commit 694eafa1f6
7 changed files with 14 additions and 15 deletions

View file

@ -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 */