/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.8 */ #ifndef PB_AGENTS_SQLITE_SQLITE_AGENT_PB_H_INCLUDED #define PB_AGENTS_SQLITE_SQLITE_AGENT_PB_H_INCLUDED #include #if PB_PROTO_HEADER_VERSION != 40 #error Regenerate this file with the current version of nanopb generator. #endif /* Enum definitions */ typedef enum _StorageOperation { /* Invalid. */ StorageOperation_STORAGE_OPERATION_UNSPECIFIED = 0, /* List all bundles matching the given filter. */ StorageOperation_STORAGE_OPERATION_LIST_BUNDLES = 1, /* Delete all bundles matching the given filter. */ StorageOperation_STORAGE_OPERATION_DELETE_BUNDLES = 2, /* Push all bundles matching the given filter to the BPA ("receive" them). */ StorageOperation_STORAGE_OPERATION_PUSH_BUNDLES = 3 } StorageOperation; /* Struct definitions */ typedef struct _BundleFilter { /* An EID pattern to match a set of bundles. May contain '*' as a placeholder (similar to POSIX-style glob patterns). */ char *eid_glob; } BundleFilter; typedef struct _StorageCall { StorageOperation operation; bool has_filter; BundleFilter filter; } StorageCall; #ifdef __cplusplus extern "C" { #endif /* Helper constants for enums */ #define _StorageOperation_MIN StorageOperation_STORAGE_OPERATION_UNSPECIFIED #define _StorageOperation_MAX StorageOperation_STORAGE_OPERATION_PUSH_BUNDLES #define _StorageOperation_ARRAYSIZE ((StorageOperation)(StorageOperation_STORAGE_OPERATION_PUSH_BUNDLES+1)) #define StorageCall_operation_ENUMTYPE StorageOperation /* Initializer values for message structs */ #define BundleFilter_init_default {NULL} #define StorageCall_init_default {_StorageOperation_MIN, false, BundleFilter_init_default} #define BundleFilter_init_zero {NULL} #define StorageCall_init_zero {_StorageOperation_MIN, false, BundleFilter_init_zero} /* Field tags (for use in manual encoding/decoding) */ #define BundleFilter_eid_glob_tag 1 #define StorageCall_operation_tag 1 #define StorageCall_filter_tag 2 /* Struct field encoding specification for nanopb */ #define BundleFilter_FIELDLIST(X, a) \ X(a, POINTER, SINGULAR, STRING, eid_glob, 1) #define BundleFilter_CALLBACK NULL #define BundleFilter_DEFAULT NULL #define StorageCall_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, UENUM, operation, 1) \ X(a, STATIC, OPTIONAL, MESSAGE, filter, 2) #define StorageCall_CALLBACK NULL #define StorageCall_DEFAULT NULL #define StorageCall_filter_MSGTYPE BundleFilter extern const pb_msgdesc_t BundleFilter_msg; extern const pb_msgdesc_t StorageCall_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define BundleFilter_fields &BundleFilter_msg #define StorageCall_fields &StorageCall_msg /* Maximum encoded size of messages (where known) */ /* BundleFilter_size depends on runtime parameters */ /* StorageCall_size depends on runtime parameters */ #ifdef __cplusplus } /* extern "C" */ #endif #endif