00001 /* 00002 * Copyright (C) 2005 iptelorg GmbH 00003 * 00004 * This file is part of ser, a free SIP server. 00005 * 00006 * ser is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version 00010 * 00011 * For a license to use the ser software under conditions 00012 * other than those described here, or to purchase support for this 00013 * software, please contact iptel.org by e-mail at the following addresses: 00014 * info@iptel.org 00015 * 00016 * ser is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 */ 00025 00026 #ifndef __SUBSCRIBER_H 00027 #define __SUBSCRIBER_H 00028 00029 /* Subscriber functions for notifier_domain */ 00030 00031 #include <presence/notifier_domain.h> 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 /* If a notifier publishing watched state registeres after subscibe 00038 * call, it receives the subscription automaticaly too! */ 00039 /*qsa_subscription_t *subscribe(notifier_domain_t *domain, 00040 qsa_subscription_t *params);*/ 00041 qsa_subscription_t *subscribe(notifier_domain_t *domain, 00042 str_t *package, 00043 qsa_subscription_data_t *data); 00044 00046 void unsubscribe(notifier_domain_t *domain, qsa_subscription_t *s); 00047 00048 void set_subscriber_data(qsa_subscription_t *s, void *data); 00049 void *get_subscriber_data(qsa_subscription_t *s); 00050 00051 void clear_subscription_data(qsa_subscription_data_t *data); 00052 00053 #ifdef __cplusplus 00054 } 00055 #endif 00056 00057 #endif
1.7.1