📄 sql_module.h
字号:
/* The SUBSCRIBE plugin is a GPL plugin for partysip. Copyright (C) 2002 2003 Aymeric MOIZARD - <jack@atosc.org> The SUBSCRIBE plugin 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. The SUBSCRIBE plugin 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 Foobar; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/#ifndef __SQL_MODULE_SUBSCRIBE_H__#define __SQL_MODULE_SUBSCRIBE_H__#include <sys/time.h>#include <osip2/osip.h>typedef struct subscription { int mid; char l_username[64]; char l_domain[128]; char l_tag[64]; int l_cseq; char r_username[64]; char r_domain[128]; int r_cseq; char event[64]; int exp_time; char notify_template[4096];} subscription_t;int module_subscribe_initialize();int module_subscribe_authorize_user(osip_from_t *fr, osip_uri_t *requri, char *eventp);int module_subscribe_dialog_exist(char *to_tag, char *event);void module_subscribe_delete_subscription(char *to_tag, osip_from_t *fr, osip_to_t *to, char *eventp);int module_subscribe_store_dialog(osip_message_t *sub, osip_message_t *response);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -