rls/notify.h File Reference

#include <libxml/parser.h>
#include "../../str.h"
#include "../presence/subscribe.h"

Include dependency graph for rls/notify.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BOUNDARY_STRING_LEN   24
#define BUF_REALLOC_SIZE   2048
#define COMPUTE_ANTET_LEN(boundary_string)   (strlen( boundary_string)+ MAX_HEADERS_LENGTH + 6)
#define MAX_FORWARD   70
#define MAX_HEADERS_LENGTH   (104+ 255+ 1)
#define REALLOC_BUF
#define RLS_HDR_LEN   1024

Typedefs

typedef int(* list_func_t )(char *uri, void *param)

Functions

int agg_body_sendn_update (str *rl_uri, char *boundary_string, str *rlmi_body, str *multipart_body, subs_t *subs, unsigned int hash_code)
char * generate_cid (char *uri, int uri_len)
char * generate_string (int seed, int length)
char * get_auth_string (int flag)
int process_list_and_exec (xmlNodePtr list, list_func_t function, void *param)
int rls_send_notify (subs_t *subs, str *body, char *start_cid, char *boundary_string)
int send_full_notify (subs_t *subs, xmlNodePtr rl_node, int version, str *rl_uri, unsigned int hash_code)


Define Documentation

#define BOUNDARY_STRING_LEN   24

Definition at line 37 of file rls/notify.h.

Referenced by send_full_notify(), and timer_send_notify().

#define BUF_REALLOC_SIZE   2048

Definition at line 38 of file rls/notify.h.

Referenced by constr_multipart_body(), and timer_send_notify().

#define COMPUTE_ANTET_LEN ( boundary_string   )     (strlen( boundary_string)+ MAX_HEADERS_LENGTH + 6)

Definition at line 49 of file rls/notify.h.

Referenced by constr_multipart_body(), and timer_send_notify().

#define MAX_FORWARD   70

Definition at line 41 of file rls/notify.h.

#define MAX_HEADERS_LENGTH   (104+ 255+ 1)

Definition at line 39 of file rls/notify.h.

#define REALLOC_BUF

Value:

size+= BUF_REALLOC_SIZE;\
      buf= (char*)realloc(buf, size);\
      if(buf== NULL) \
      {  ERR_MEM("constr_multipart_body");}

Definition at line 43 of file rls/notify.h.

Referenced by constr_multipart_body(), and timer_send_notify().

#define RLS_HDR_LEN   1024

Definition at line 40 of file rls/notify.h.

Referenced by rls_notify_extra_hdr().


Typedef Documentation

typedef int(* list_func_t)(char *uri, void *param)

Definition at line 53 of file rls/notify.h.


Function Documentation

int agg_body_sendn_update ( str rl_uri,
char *  boundary_string,
str rlmi_body,
str multipart_body,
subs_t subs,
unsigned int  hash_code 
)

char* generate_cid ( char *  uri,
int  uri_len 
)

Definition at line 917 of file rls/notify.c.

References len, and NULL.

Referenced by add_resource_instance(), agg_body_sendn_update(), and timer_send_notify().

char* generate_string ( int  seed,
int  length 
)

Definition at line 892 of file rls/notify.c.

References buf, LM_ERR, and NULL.

Referenced by add_resource_instance(), send_full_notify(), and timer_send_notify().

char* get_auth_string ( int  flag  ) 

Definition at line 928 of file rls/notify.c.

References ACTIVE_STATE, NULL, PENDING_STATE, and TERMINATED_STATE.

Referenced by add_resource_instance(), and timer_send_notify().

int process_list_and_exec ( xmlNodePtr  list,
list_func_t  function,
void *  param 
)

int rls_send_notify ( subs_t subs,
str body,
char *  start_cid,
char *  boundary_string 
)

int send_full_notify ( subs_t subs,
xmlNodePtr  rl_node,
int  version,
str rl_uri,
unsigned int  hash_code 
)


Generated on Thu May 24 10:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6