parse_subscription_state.h

Go to the documentation of this file.
00001 
00007 #ifndef __PARSE_SUBSCRIPTION_STATE_H
00008 #define __PARSE_SUBSCRIPTION_STATE_H
00009 
00010 #include "hf.h"
00011 
00012 typedef enum {
00013         ss_active,
00014         ss_pending,
00015         ss_terminated,
00016         ss_extension
00017 } substate_value_t;
00018 
00019 typedef struct _subscription_state_t {
00020         substate_value_t value;
00021         unsigned int expires;
00022         int expires_set; /* expires is valid if nonzero here */
00023 } subscription_state_t;
00024 
00025 int parse_subscription_state(struct hdr_field *h);
00026 
00027 void free_subscription_state(subscription_state_t **ss);
00028 
00029 #endif