blob: 966aed931b6fc3451ba59ba84ea932f390beafa3 [file] [log] [blame]
Benny Prijono834aee32006-02-19 01:38:06 +00001/* $Id$ */
2/*
3 * Copyright (C) 2003-2006 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJSIP_SIMPLE_ERRNO_H__
20#define __PJSIP_SIMPLE_ERRNO_H__
21
22
23#include <pjsip/sip_errno.h>
24
25/**
Benny Prijono26ff9062006-02-21 23:47:00 +000026 * Start of error code relative to PJ_ERRNO_START_USER.
27 */
28#define PJSIP_SIMPLE_ERRNO_START (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*2)
29
30
31/**
Benny Prijono834aee32006-02-19 01:38:06 +000032 * @hideinitializer
33 * No event package with the specified name.
34 */
Benny Prijono26ff9062006-02-21 23:47:00 +000035#define PJSIP_SIMPLE_ENOPKG (PJSIP_SIMPLE_ERRNO_START+1) /*270001*/
Benny Prijono834aee32006-02-19 01:38:06 +000036/**
37 * @hideinitializer
38 * Event package already exists.
39 */
Benny Prijono26ff9062006-02-21 23:47:00 +000040#define PJSIP_SIMPLE_EPKGEXISTS (PJSIP_SIMPLE_ERRNO_START+2) /*270002*/
Benny Prijono834aee32006-02-19 01:38:06 +000041
42
43/**
44 * @hideinitializer
45 * Expecting SUBSCRIBE request
46 */
Benny Prijono26ff9062006-02-21 23:47:00 +000047#define PJSIP_SIMPLE_ENOTSUBSCRIBE (PJSIP_SIMPLE_ERRNO_START+20) /*270020*/
Benny Prijono834aee32006-02-19 01:38:06 +000048/**
49 * @hideinitializer
50 * No presence associated with subscription
51 */
Benny Prijono26ff9062006-02-21 23:47:00 +000052#define PJSIP_SIMPLE_ENOPRESENCE (PJSIP_SIMPLE_ERRNO_START+21) /*270021*/
Benny Prijono834aee32006-02-19 01:38:06 +000053/**
54 * @hideinitializer
55 * No presence info in server subscription
56 */
Benny Prijono26ff9062006-02-21 23:47:00 +000057#define PJSIP_SIMPLE_ENOPRESENCEINFO (PJSIP_SIMPLE_ERRNO_START+22) /*270022*/
Benny Prijono834aee32006-02-19 01:38:06 +000058/**
59 * @hideinitializer
60 * Bad Content-Type
61 */
Benny Prijono26ff9062006-02-21 23:47:00 +000062#define PJSIP_SIMPLE_EBADCONTENT (PJSIP_SIMPLE_ERRNO_START+23) /*270023*/
Benny Prijono834aee32006-02-19 01:38:06 +000063/**
64 * @hideinitializer
65 * Bad PIDF Message
66 */
Benny Prijono26ff9062006-02-21 23:47:00 +000067#define PJSIP_SIMPLE_EBADPIDF (PJSIP_SIMPLE_ERRNO_START+24) /*270024*/
Benny Prijono834aee32006-02-19 01:38:06 +000068/**
69 * @hideinitializer
70 * Bad XPIDF Message
71 */
Benny Prijono26ff9062006-02-21 23:47:00 +000072#define PJSIP_SIMPLE_EBADXPIDF (PJSIP_SIMPLE_ERRNO_START+25) /*270025*/
Benny Prijono834aee32006-02-19 01:38:06 +000073
74
75
76#endif /* __PJSIP_SIMPLE_ERRNO_H__ */
77