00001 #pragma once
00002 #ifndef SEAP_MESSAGE_H
00003 #define SEAP_MESSAGE_H
00004
00005 #include <stdint.h>
00006 #include <sexp-types.h>
00007
00008 typedef uint32_t SEAP_msgid_t;
00009 typedef struct SEAP_msg SEAP_msg_t;
00010 typedef struct SEAP_attr SEAP_attr_t;
00011
00012 SEAP_msg_t *SEAP_msg_new (void);
00013 void SEAP_msg_free (SEAP_msg_t *msg);
00014
00015 SEAP_msgid_t SEAP_msg_id (SEAP_msg_t *msg);
00016
00017 int SEAP_msg_set (SEAP_msg_t *msg, SEXP_t *sexp);
00018 SEXP_t *SEAP_msg_get (SEAP_msg_t *msg);
00019
00020 SEXP_t *SEAP_msgattr_get (SEAP_msg_t *msg, const char *name);
00021 int SEAP_msgattr_set (SEAP_msg_t *msg, const char *name, SEXP_t *value);
00022 int SEAP_msgattr_del (SEAP_msg_t *msg, const char *name);
00023 int SEAP_msgattr_exists (SEAP_msg_t *msg, const char *name);
00024
00025 #endif