This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-12-19 18:16:38 +01:00
|
|
|
#ifndef __MSG_FORMAT_H__
|
|
|
|
#define __MSG_FORMAT_H__
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
#define MSG_TYPE_CON 1
|
|
|
|
#define MSG_TYPE_ERR 2
|
|
|
|
#define MSG_TYPE_ACK 4
|
|
|
|
|
|
|
|
int msg_format_con (char *buf, const char *constr, size_t *msgsize);
|
2016-12-19 19:20:27 +01:00
|
|
|
int msg_format_ack (char *buf, const char *constr, size_t *msgsize);
|
2016-12-19 18:16:38 +01:00
|
|
|
|
|
|
|
#endif
|