/* linphone Copyright (C) 2000 - 2010 Simon MORLAT (simon.morlat@linphone.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef LINPHONEEVENT_H #define LINPHONEEVENT_H /** * @addtogroup subscriptions * @{ **/ struct _LinphoneEvent; /** * Object representing an event state, which is subcribed or published. * @see linphone_core_publish() * @see linphone_core_subscribe() **/ typedef struct _LinphoneEvent LinphoneEvent; /** * Enum for subscription direction (incoming or outgoing). **/ enum _LinphoneSubscriptionDir{ LinphoneSubscriptionIncoming, LinphoneSubscriptionOutgoing, LinphoneSubscriptionInvalidDir }; /** * Typedef alias for _LinphoneSubscriptionDir **/ typedef enum _LinphoneSubscriptionDir LinphoneSubscriptionDir; /** * Enum for subscription states. **/ enum _LinphoneSubscriptionState{ LinphoneSubscriptionNone, /**< Initial state, should not be used.**/ LinphoneSubscriptionOutoingInit, /**refresh_generic_subscribe property is set to 0.*/ }; /** * Typedef for subscription state enum. **/ typedef enum _LinphoneSubscriptionState LinphoneSubscriptionState; LINPHONE_PUBLIC const char *linphone_subscription_state_to_string(LinphoneSubscriptionState state); /** * Enum for publish states. **/ enum _LinphonePublishState{ LinphonePublishNone, /**< Initial state, do not use**/ LinphonePublishProgress, /**refresh_generic_publish property is set to 0.*/ LinphonePublishCleared /**