57#define RESPONSE_OK 200
58#define RESPONSE_ACCEPTED 202
59#define RESPONSE_NO_CONTENT 204
60#define RESPONSE_BAD_REQUEST 400
61#define RESPONSE_NOT_FOUND 404
62#define RESPONSE_REQ_TIMEOUT 408
63#define RESPONSE_INT_SERV_ERR 500
64#define RESPONSE_NOT_IMPL 501
66#define RESPONSE_SUCCESSFUL(code) ((code) >= 200 && (code) < 300)
124 char postprocess_cfg[1024];
152 memset(&
m, 0,
sizeof m);
153 strncpy(
text, contents,
sizeof text - 1);
160#define MSG_UNIVERSAL_TAG_TX "TX_msg "
171#define SEND_MESSAGE_FLAG_QUIET (1<<0)
172#define SEND_MESSAGE_FLAG_NO_STORE (1<<1)
const char unsigned int flags
void free_message(struct message *m, struct response *r)
@ SENDER_MSG_QUERY_VIDEO_MODE
@ SENDER_MSG_CHANGE_RECEIVER
struct message * new_message(size_t length) __attribute__((warn_unused_result))
void module_store_message(struct module *node, struct message *m)
void module_check_undelivered_messages(struct module *)
Sends message with waiting for response.
void free_message_for_child(void *m, struct response *r)
struct response * new_response(int status, const char *optional_message)
struct response * send_message_to_receiver(struct module *, struct message *msg) __attribute__((warn_unused_result))
int response_get_status(struct response *r)
@ RECEIVER_MSG_MUTE_TOGGLE
@ RECEIVER_MSG_DECREASE_VOLUME
@ RECEIVER_MSG_CHANGE_RX_PORT
@ RECEIVER_MSG_INCREASE_VOLUME
@ RECEIVER_MSG_GET_AUDIO_STATUS
@ RECEIVER_MSG_VIDEO_PROP_CHANGED
struct response * send_message_sync(struct module *, const char *path, struct message *msg, int timeout_ms, int flags) __attribute__((warn_unused_result))
Sends message without waiting for response.
struct message * check_message(struct module *)
struct response * send_message(struct module *, const char *path, struct message *msg) __attribute__((warn_unused_result))
Sends message without waiting for response.
void free_response(struct response *r)
const char * response_status_to_text(int status)
const char * response_get_text(struct response *r)
struct __attribute__((packed))
void(* send_response)(void *priv_data, struct response *)
void(* data_deleter)(struct message *)
enum compress_change_type what
enum msg_receiver_type type
enum msg_sender_type type
msg_universal(const char *contents)
This file contains some common data types.