mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
1db29eaea8
* RPC: Add App start, lock status - Add RPC commands Application start, lock status acquiring. - Write tests for RPC App system. - Replace Unit Tests application with CLI command. This is for CI needs and for tests that run application. * Fix NDEBUG build * Update PB submodule * Fix RPC print (ENABLE DEBUG PRINT!) * snprintf -> string_t * Fix Hard Fault (early mutex free) * printf -> string_t, format, enable tests * Update submodule: protobuf * Applications: rollback unit test naming scheme. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
79 lines
2.5 KiB
C
79 lines
2.5 KiB
C
/* Automatically generated nanopb header */
|
|
/* Generated by nanopb-0.4.5 */
|
|
|
|
#ifndef PB_PB_APP_APPLICATION_PB_H_INCLUDED
|
|
#define PB_PB_APP_APPLICATION_PB_H_INCLUDED
|
|
#include <pb.h>
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
#endif
|
|
|
|
/* Struct definitions */
|
|
typedef struct _PB_App_LockStatusRequest {
|
|
char dummy_field;
|
|
} PB_App_LockStatusRequest;
|
|
|
|
typedef struct _PB_App_Start {
|
|
char *name;
|
|
char *args;
|
|
} PB_App_Start;
|
|
|
|
typedef struct _PB_App_LockStatusResponse {
|
|
bool locked;
|
|
} PB_App_LockStatusResponse;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initializer values for message structs */
|
|
#define PB_App_Start_init_default {NULL, NULL}
|
|
#define PB_App_LockStatusRequest_init_default {0}
|
|
#define PB_App_LockStatusResponse_init_default {0}
|
|
#define PB_App_Start_init_zero {NULL, NULL}
|
|
#define PB_App_LockStatusRequest_init_zero {0}
|
|
#define PB_App_LockStatusResponse_init_zero {0}
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
#define PB_App_Start_name_tag 1
|
|
#define PB_App_Start_args_tag 2
|
|
#define PB_App_LockStatusResponse_locked_tag 1
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
#define PB_App_Start_FIELDLIST(X, a) \
|
|
X(a, POINTER, SINGULAR, STRING, name, 1) \
|
|
X(a, POINTER, SINGULAR, STRING, args, 2)
|
|
#define PB_App_Start_CALLBACK NULL
|
|
#define PB_App_Start_DEFAULT NULL
|
|
|
|
#define PB_App_LockStatusRequest_FIELDLIST(X, a) \
|
|
|
|
#define PB_App_LockStatusRequest_CALLBACK NULL
|
|
#define PB_App_LockStatusRequest_DEFAULT NULL
|
|
|
|
#define PB_App_LockStatusResponse_FIELDLIST(X, a) \
|
|
X(a, STATIC, SINGULAR, BOOL, locked, 1)
|
|
#define PB_App_LockStatusResponse_CALLBACK NULL
|
|
#define PB_App_LockStatusResponse_DEFAULT NULL
|
|
|
|
extern const pb_msgdesc_t PB_App_Start_msg;
|
|
extern const pb_msgdesc_t PB_App_LockStatusRequest_msg;
|
|
extern const pb_msgdesc_t PB_App_LockStatusResponse_msg;
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
#define PB_App_Start_fields &PB_App_Start_msg
|
|
#define PB_App_LockStatusRequest_fields &PB_App_LockStatusRequest_msg
|
|
#define PB_App_LockStatusResponse_fields &PB_App_LockStatusResponse_msg
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
/* PB_App_Start_size depends on runtime parameters */
|
|
#define PB_App_LockStatusRequest_size 0
|
|
#define PB_App_LockStatusResponse_size 2
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|