41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/*
|
|
* v1alpha3_opaque_device_configuration.h
|
|
*
|
|
* OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
*/
|
|
|
|
#ifndef _v1alpha3_opaque_device_configuration_H_
|
|
#define _v1alpha3_opaque_device_configuration_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1alpha3_opaque_device_configuration_t v1alpha3_opaque_device_configuration_t;
|
|
|
|
#include "object.h"
|
|
|
|
|
|
|
|
typedef struct v1alpha3_opaque_device_configuration_t {
|
|
char *driver; // string
|
|
object_t *parameters; //object
|
|
|
|
} v1alpha3_opaque_device_configuration_t;
|
|
|
|
v1alpha3_opaque_device_configuration_t *v1alpha3_opaque_device_configuration_create(
|
|
char *driver,
|
|
object_t *parameters
|
|
);
|
|
|
|
void v1alpha3_opaque_device_configuration_free(v1alpha3_opaque_device_configuration_t *v1alpha3_opaque_device_configuration);
|
|
|
|
v1alpha3_opaque_device_configuration_t *v1alpha3_opaque_device_configuration_parseFromJSON(cJSON *v1alpha3_opaque_device_configurationJSON);
|
|
|
|
cJSON *v1alpha3_opaque_device_configuration_convertToJSON(v1alpha3_opaque_device_configuration_t *v1alpha3_opaque_device_configuration);
|
|
|
|
#endif /* _v1alpha3_opaque_device_configuration_H_ */
|
|
|