Commit 693e6a47 authored by Pekka Pessi's avatar Pekka Pessi

Added soa_name.

darcs-hash:20051014093116-65a35-cf43849df789a9514746c625e8df92dc4cdb3990.gz
parent dd2414a8
......@@ -82,6 +82,7 @@ static int soa_set_sdp(soa_session_t *ss,
#define SOA_VALID_ACTIONS(a) \
((a)->sizeof_soa_session_actions >= sizeof (*actions) && \
(a)->sizeof_soa_session >= sizeof(soa_session_t) && \
(a)->soa_name != NULL && \
(a)->soa_init != NULL && \
(a)->soa_set_params != NULL && \
(a)->soa_get_params != NULL && \
......
......@@ -48,6 +48,7 @@ struct soa_session_actions
{
int sizeof_soa_session_actions;
int sizeof_soa_session;
char const *soa_name;
int (*soa_init)(char const *name, soa_session_t *ss, soa_session_t *parent);
void (*soa_deinit)(soa_session_t *ss);
int (*soa_set_params)(soa_session_t *ss, tagi_t const *tags);
......
......@@ -108,6 +108,7 @@ struct soa_session_actions const soa_default_actions =
{
(sizeof soa_default_actions),
sizeof (struct soa_static_session),
"static",
soa_static_init,
soa_static_deinit,
soa_static_set_params,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment