2024-05-18 13:20:54 +00:00
|
|
|
/*
|
|
|
|
|
* v1_node_runtime_handler_features.h
|
|
|
|
|
*
|
2024-10-12 03:18:38 +00:00
|
|
|
* NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.
|
2024-05-18 13:20:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_node_runtime_handler_features_H_
|
|
|
|
|
#define _v1_node_runtime_handler_features_H_
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
|
#include "../include/list.h"
|
|
|
|
|
#include "../include/keyValuePair.h"
|
|
|
|
|
#include "../include/binary.h"
|
|
|
|
|
|
|
|
|
|
typedef struct v1_node_runtime_handler_features_t v1_node_runtime_handler_features_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_node_runtime_handler_features_t {
|
|
|
|
|
int recursive_read_only_mounts; //boolean
|
2024-10-12 03:18:38 +00:00
|
|
|
int user_namespaces; //boolean
|
2024-05-18 13:20:54 +00:00
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
2024-05-18 13:20:54 +00:00
|
|
|
} v1_node_runtime_handler_features_t;
|
|
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
__attribute__((deprecated)) v1_node_runtime_handler_features_t *v1_node_runtime_handler_features_create(
|
2024-10-12 03:18:38 +00:00
|
|
|
int recursive_read_only_mounts,
|
|
|
|
|
int user_namespaces
|
2024-05-18 13:20:54 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_node_runtime_handler_features_free(v1_node_runtime_handler_features_t *v1_node_runtime_handler_features);
|
|
|
|
|
|
|
|
|
|
v1_node_runtime_handler_features_t *v1_node_runtime_handler_features_parseFromJSON(cJSON *v1_node_runtime_handler_featuresJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_node_runtime_handler_features_convertToJSON(v1_node_runtime_handler_features_t *v1_node_runtime_handler_features);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_node_runtime_handler_features_H_ */
|
|
|
|
|
|