Files
c/kubernetes/model/v1_capabilities.h

41 lines
935 B
C
Raw Permalink Normal View History

/*
* v1_capabilities.h
*
* Adds and removes POSIX capabilities from running containers.
*/
#ifndef _v1_capabilities_H_
#define _v1_capabilities_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_capabilities_t v1_capabilities_t;
typedef struct v1_capabilities_t {
list_t *add; //primitive container
list_t *drop; //primitive container
int _library_owned; // Is the library responsible for freeing this object?
} v1_capabilities_t;
__attribute__((deprecated)) v1_capabilities_t *v1_capabilities_create(
list_t *add,
list_t *drop
);
void v1_capabilities_free(v1_capabilities_t *v1_capabilities);
v1_capabilities_t *v1_capabilities_parseFromJSON(cJSON *v1_capabilitiesJSON);
cJSON *v1_capabilities_convertToJSON(v1_capabilities_t *v1_capabilities);
#endif /* _v1_capabilities_H_ */