auth.h 571 B

123456789101112131415161718192021222324
  1. #ifndef __AUTHORIZATION_H
  2. #define __AUTHORIZATION_H
  3. #include <xcap/pres_rules.h>
  4. typedef enum {
  5. auth_none,
  6. auth_implicit, /* implicit authorization rules (may differ for packages, ...) */
  7. auth_xcap
  8. } authorization_type_t;
  9. typedef struct {
  10. authorization_type_t type;
  11. } auth_params_t;
  12. #include "watcher.h"
  13. #include "presentity.h"
  14. #include "qsa_interface.h"
  15. #include "../../parser/msg_parser.h"
  16. watcher_status_t authorize_internal_watcher(presentity_t *p, internal_pa_subscription_t *is);
  17. watcher_status_t authorize_watcher(presentity_t *p, watcher_t *w);
  18. #endif