obsolete/pa/auth.h

00001 #ifndef __AUTHORIZATION_H
00002 #define __AUTHORIZATION_H
00003 
00004 #include <xcap/pres_rules.h>
00005 
00006 typedef enum {
00007         auth_none, 
00008         auth_implicit, /* implicit authorization rules (may differ for packages, ...) */
00009         auth_xcap
00010 } authorization_type_t;
00011 
00012 typedef struct {
00013         authorization_type_t type;
00014 } auth_params_t;
00015 
00016 #include "watcher.h"
00017 #include "presentity.h"
00018 #include "qsa_interface.h"
00019 #include "../../parser/msg_parser.h"
00020 
00021 watcher_status_t authorize_internal_watcher(presentity_t *p, internal_pa_subscription_t *is);
00022 watcher_status_t authorize_watcher(presentity_t *p, watcher_t *w);
00023 
00024 #endif