Regenerate C interface bindings.

Change-Id: I298dd002508da5c94e81c64634ae6d97194d8cd5
GitOrigin-RevId: ff1cc5fa27f6e194f5244d6e49df800ac64fecc7
This commit is contained in:
Sam Leffler 2022-05-11 01:01:00 +00:00
parent 746616b6d6
commit 0286d516ce
6 changed files with 24 additions and 8 deletions

View File

@ -28,6 +28,8 @@ typedef struct MemoryManagerStats {
uintptr_t overhead_bytes; uintptr_t overhead_bytes;
uintptr_t allocated_objs; uintptr_t allocated_objs;
uintptr_t total_requested_objs; uintptr_t total_requested_objs;
uintptr_t untyped_slab_too_small;
uintptr_t out_of_memory;
} MemoryManagerStats; } MemoryManagerStats;
#endif /* __MEMORY_MANAGER_BINDINGS_H__ */ #endif /* __MEMORY_MANAGER_BINDINGS_H__ */

View File

@ -1,4 +1,4 @@
procedure MlCoordinatorInterface { procedure MlCoordinatorInterface {
void execute(); void execute(in string bundle_id, in string model_id);
void set_continuous_mode(bool mode); void set_continuous_mode(bool mode);
}; };

View File

@ -1,6 +1,6 @@
procedure PackageManagementInterface { procedure PackageManagementInterface {
include <ProcessManagerBindings.h>; include <ProcessManagerBindings.h>;
ProcessManagerError install(in char pkg_buffer[], out RawBundleIdData raw_data); ProcessManagerError install(in char request[], out RawBundleIdData raw_data);
ProcessManagerError uninstall(in string bundleId); ProcessManagerError uninstall(in string bundleId);
}; };

View File

@ -10,16 +10,20 @@
typedef enum ProcessManagerError { typedef enum ProcessManagerError {
Success = 0, Success = 0,
BundleIdInvalid, BundleIdInvalid,
BundleDataInvalid,
PackageBufferLenInvalid, PackageBufferLenInvalid,
BundleNotFound, BundleNotFound,
BundleFound, BundleFound,
BundleRunning, BundleRunning,
NoSpace, UnknownError,
DeserializeError,
SerializeError,
ObjCapInvalid,
InstallFailed, InstallFailed,
UninstallFailed, UninstallFailed,
StartFailed, StartFailed,
StopFailed, StopFailed,
SuspendFailed,
ResumeFailed,
} ProcessManagerError; } ProcessManagerError;
typedef uint8_t RawBundleIdData[RAW_BUNDLE_ID_DATA_SIZE]; typedef uint8_t RawBundleIdData[RAW_BUNDLE_ID_DATA_SIZE];

View File

@ -3,14 +3,14 @@
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */ /* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
#define SECURITY_REQUEST_DATA_SIZE 2048
#define SECURITY_REPLY_DATA_SIZE 2048 #define SECURITY_REPLY_DATA_SIZE 2048
typedef enum SecurityRequest { typedef enum SecurityRequest {
SrEcho = 0, SrEcho = 0,
SrInstall, SrInstall,
SrUninstall, SrUninstall,
SrSizeBuffer,
SrGetManifest,
SrLoadApplication, SrLoadApplication,
SrLoadModel, SrLoadModel,
SrReadKey, SrReadKey,
@ -23,19 +23,28 @@ typedef enum SecurityRequestError {
SreBundleIdInvalid, SreBundleIdInvalid,
SreBundleDataInvalid, SreBundleDataInvalid,
SreBundleNotFound, SreBundleNotFound,
SreDeleteFirst,
SreKeyNotFound, SreKeyNotFound,
SrePackageBufferLenInvalid, SrePackageBufferLenInvalid,
SreValueInvalid, SreValueInvalid,
SreKeyInvalid, SreKeyInvalid,
SreDeserializeFailed,
SreSerializeFailed,
SreCapAllocFailed,
SreCapMoveFailed,
SreObjCapInvalid,
SreEchoFailed,
SreInstallFailed, SreInstallFailed,
SreUninstallFailed, SreUninstallFailed,
SreSizeBufferFailed,
SreGetManifestFailed,
SreLoadApplicationFailed,
SreLoadModelFailed,
SreReadFailed, SreReadFailed,
SreWriteFailed, SreWriteFailed,
SreDeleteFailed, SreDeleteFailed,
} SecurityRequestError; } SecurityRequestError;
typedef uint8_t SecurityRequestData[SECURITY_REQUEST_DATA_SIZE];
typedef uint8_t SecurityReplyData[SECURITY_REPLY_DATA_SIZE]; typedef uint8_t SecurityReplyData[SECURITY_REPLY_DATA_SIZE];
#endif /* __SECURITY_COORDINATOR_BINDINGS_H__ */ #endif /* __SECURITY_COORDINATOR_BINDINGS_H__ */

View File

@ -15,6 +15,7 @@ typedef enum StorageManagerError {
SmeReadFailed, SmeReadFailed,
SmeWriteFailed, SmeWriteFailed,
SmeDeleteFailed, SmeDeleteFailed,
SmeUnknownError,
} StorageManagerError; } StorageManagerError;
typedef uint8_t KeyValueData[KEY_VALUE_DATA_SIZE]; typedef uint8_t KeyValueData[KEY_VALUE_DATA_SIZE];