changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > demo / ffi/demo.h

changeset 11: d8f806f1d327
parent: 315fedf35bc7
child: 1fedeaa5bfc5
author: ellis <ellis@rwest.io>
date: Sun, 14 May 2023 21:27:04 -0400
permissions: -rw-r--r--
description: obj updates
1 #ifndef demo_h
2 #define demo_h
3 
4 /* Generated with cbindgen:0.24.3 */
5 
6 /* DO NOT TOUCH */
7 
8 #include <stdarg.h>
9 #include <stdbool.h>
10 #include <stdint.h>
11 #include <stdlib.h>
12 
13 typedef struct CustomService CustomService;
14 
15 /**
16  * APPLICATION TYPES
17  */
18 typedef struct Service Service;
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif // __cplusplus
23 
24 void free_service(struct Service *ptr);
25 
26 struct Service *service_from_string(const char *ptr);
27 
28 struct Service *service_from_json_string(const char *ptr);
29 
30 char *service_to_json_string(const struct Service *ptr);
31 
32 struct Service *service_from_ron_string(const char *ptr);
33 
34 char *service_to_ron_string(const struct Service *ptr);
35 
36 struct Service *service_decode(const uint8_t *ptr, size_t len);
37 
38 uint8_t *service_encode(const struct Service *ptr);
39 
40 void free_custom_service(struct CustomService *ptr);
41 
42 struct CustomService *custom_service_from_string(const char *ptr);
43 
44 struct CustomService *custom_service_from_json_string(const char *ptr);
45 
46 char *custom_service_to_json_string(const struct CustomService *ptr);
47 
48 struct CustomService *custom_service_from_ron_string(const char *ptr);
49 
50 char *custom_service_to_ron_string(const struct CustomService *ptr);
51 
52 struct CustomService *custom_service_decode(const uint8_t *ptr, size_t len);
53 
54 uint8_t *custom_service_encode(const struct CustomService *ptr);
55 
56 #ifdef __cplusplus
57 } // extern "C"
58 #endif // __cplusplus
59 
60 #endif /* demo_h */