Something went wrong on our end
-
Jake Drahos authored
Hopefully there are no copy-paste bugs
Jake Drahos authoredHopefully there are no copy-paste bugs
respcontrol.h 642 B
#ifndef _respcontrol_h
#define _respcontrol_h
#include "packet.h"
#include "controller.h"
#include <sys/types.h>
/* Creates data and metadata for a respcontrol packet.
* Returns data size.
*/
ssize_t EncodeRespcontrol(
struct metadata *m, /* Out */
uint8_t *data, /* Out */
size_t data_size, /* Data buffer max size */
const struct controller_message *cm); /* In */
/* Decode a metadata and data to populate a message
* Returns 0 on success, -1 on failure
*/
int DecodeRespcontrol(
struct controller_message *cm, /* Out */
const struct metadata *m, /* In */
const uint8_t * data); /* In */
#endif