pua/hash.h File Reference

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "../../str.h"
#include "../../lock_ops.h"
#include "../../dprint.h"
#include "../../parser/msg_parser.h"

Include dependency graph for pua/hash.h:

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

Go to the source code of this file.

Data Structures

struct  hash_entry
struct  htable
struct  ua_pres

Defines

#define BLA_EVENT   1<<2
#define BLA_PUBLISH   1<<1
#define BLA_SUBSCRIBE   1<<2
#define CONFERENCE_EVENT   1<<4
#define DIALOG_EVENT   1<<5
#define DIALOG_PUBLISH   1<<10
#define INSERTDB_FLAG   1<<2
#define MAX_FORWARD   70
#define MI_ASYN_PUBLISH   1<<7
#define MI_PUBLISH   1<<6
#define MI_SUBSCRIBE   1<<8
#define MSGSUM_EVENT   1<<3
#define NO_UPDATEDB_FLAG   1<<0
#define PRESENCE_EVENT   1<<0
#define PURPLE_PUBLISH   1<<11
#define PWINFO_EVENT   1<<1
#define RLS_SUBSCRIBE   1<<9
#define UL_PUBLISH   1<<0
#define UPDATEDB_FLAG   1<<1
#define XMPP_INITIAL_SUBS   1<<5
#define XMPP_PUBLISH   1<<3
#define XMPP_SUBSCRIBE   1<<4

Typedefs

typedef int(* get_record_id_t )(ua_pres_t *dialog, str **rec_id)
typedef struct hash_entry hash_entry_t
typedef struct htable htable_t
typedef int(* query_dialog_t )(ua_pres_t *presentity)
typedef struct ua_pres ua_pres_t

Functions

void delete_htable (ua_pres_t *presentity, unsigned int hash_code)
void destroy_htable (void)
ua_pres_tget_dialog (ua_pres_t *dialog, unsigned int hash_code)
static int get_event_flag (str *event)
int get_record_id (ua_pres_t *dialog, str **rec_id)
void insert_htable (ua_pres_t *presentity)
int is_dialog (ua_pres_t *dialog)
htable_tnew_htable (void)
void print_ua_pres (ua_pres_t *p)
ua_pres_tsearch_htable (ua_pres_t *pres, unsigned int hash_code)
int update_contact (struct sip_msg *msg, char *str1, char *str2)
void update_htable (ua_pres_t *presentity, time_t desired_expires, int expires, str *etag, unsigned int hash_code, str *contact)


Define Documentation

#define BLA_EVENT   1<<2

Definition at line 39 of file pua/hash.h.

Referenced by bla_cb(), bla_handle_notify(), get_event_flag(), and pua_add_events().

#define BLA_PUBLISH   1<<1

Definition at line 45 of file pua/hash.h.

Referenced by bla_handle_notify().

#define BLA_SUBSCRIBE   1<<2

Definition at line 46 of file pua/hash.h.

Referenced by bla_cb(), bla_handle_notify(), and subs_cback_func().

#define CONFERENCE_EVENT   1<<4

Definition at line 41 of file pua/hash.h.

Referenced by get_event_flag().

#define DIALOG_EVENT   1<<5

Definition at line 42 of file pua/hash.h.

Referenced by get_event_flag(), and pua_add_events().

#define DIALOG_PUBLISH   1<<10

Definition at line 54 of file pua/hash.h.

#define INSERTDB_FLAG   1<<2

#define MAX_FORWARD   70

Definition at line 61 of file pua/hash.h.

#define MI_ASYN_PUBLISH   1<<7

Definition at line 51 of file pua/hash.h.

Referenced by mi_pua_publish(), mod_init(), and publ_cback_func().

#define MI_PUBLISH   1<<6

Definition at line 50 of file pua/hash.h.

Referenced by mi_pua_publish(), and publ_cback_func().

#define MI_SUBSCRIBE   1<<8

Definition at line 52 of file pua/hash.h.

Referenced by mi_pua_subscribe().

#define MSGSUM_EVENT   1<<3

Definition at line 40 of file pua/hash.h.

Referenced by get_event_flag(), and pua_add_events().

#define NO_UPDATEDB_FLAG   1<<0

#define PRESENCE_EVENT   1<<0

#define PURPLE_PUBLISH   1<<11

Definition at line 55 of file pua/hash.h.

Referenced by purple_send_sip_publish().

#define PWINFO_EVENT   1<<1

Definition at line 38 of file pua/hash.h.

Referenced by get_event_flag(), Notify2Xmpp(), pua_add_events(), and request_winfo().

#define RLS_SUBSCRIBE   1<<9

Definition at line 53 of file pua/hash.h.

Referenced by resource_subscriptions(), and rls_handle_notify().

#define UL_PUBLISH   1<<0

Definition at line 44 of file pua/hash.h.

Referenced by ul_publish().

#define UPDATEDB_FLAG   1<<1

#define XMPP_INITIAL_SUBS   1<<5

Definition at line 49 of file pua/hash.h.

Referenced by mod_init(), pres_Xmpp2Sip(), send_subscribe(), and subs_cback_func().

#define XMPP_PUBLISH   1<<3

Definition at line 47 of file pua/hash.h.

Referenced by build_publish().

#define XMPP_SUBSCRIBE   1<<4

Definition at line 48 of file pua/hash.h.

Referenced by Notify2Xmpp(), pres_Xmpp2Sip(), request_winfo(), send_subscribe(), and subs_cback_func().


Typedef Documentation

typedef int(* get_record_id_t)(ua_pres_t *dialog, str **rec_id)

Definition at line 127 of file pua/hash.h.

typedef struct hash_entry hash_entry_t

typedef struct htable htable_t

Definition at line 132 of file pua/hash.h.

typedef struct ua_pres ua_pres_t


Function Documentation

void delete_htable ( ua_pres_t presentity,
unsigned int  hash_code 
)

void destroy_htable ( void   ) 

ua_pres_t* get_dialog ( ua_pres_t dialog,
unsigned int  hash_code 
)

static int get_event_flag ( str event  )  [inline, static]

int get_record_id ( ua_pres_t dialog,
str **  rec_id 
)

void insert_htable ( ua_pres_t presentity  ) 

int is_dialog ( ua_pres_t dialog  ) 

htable_t* new_htable ( void   ) 

void print_ua_pres ( ua_pres_t p  ) 

ua_pres_t* search_htable ( ua_pres_t pres,
unsigned int  hash_code 
)

int update_contact ( struct sip_msg msg,
char *  str1,
char *  str2 
)

void update_htable ( ua_pres_t presentity,
time_t  desired_expires,
int  expires,
str etag,
unsigned int  hash_code,
str contact 
)


Generated on Thu May 24 08:01:09 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6