Skip to content
Snippets Groups Projects
Unverified Commit 9e06763d authored by Jake Drahos's avatar Jake Drahos
Browse files

Renamed files

parent 7d402def
No related branches found
No related tags found
No related merge requests found
#ifndef _getcontrol_h
#define _getcontrol_h
#include "packet.h"
#include "controller.h"
#include <sys/types.h>
/* Creates data and metadata for a getcontrol packet.
* Returns data size.
*/
ssize_t EncodeGetcontrol(
struct metadata *m, /* Out */
uint8_t *data, /* Out */
size_t data_size, /* Data buffer max size */
const struct controller_message *cm); /* Value is not used; only IDs */
/* Decode a metadata and data to populate a message
* Returns 0 on success, -1 on failure
*/
int DecodeGetcontrol(
struct controller_message *cm, /* Out. Value is undefined */
const struct metadata *m, /* In */
const uint8_t * data); /* In */
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment