blob: c3d4fe83c531502e45c98fef024731298f169726 [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
Benny Prijonob0808372006-03-02 21:18:58 +000031/************************************************************
32 * EVENT PACKAGE ERRORS
33 ***********************************************************/
Benny Prijono26ff9062006-02-21 23:47:00 +000034/**
Benny Prijono834aee32006-02-19 01:38:06 +000035 * @hideinitializer
36 * No event package with the specified name.
37 */
Benny Prijono26ff9062006-02-21 23:47:00 +000038#define PJSIP_SIMPLE_ENOPKG (PJSIP_SIMPLE_ERRNO_START+1) /*270001*/
Benny Prijono834aee32006-02-19 01:38:06 +000039/**
40 * @hideinitializer
41 * Event package already exists.
42 */
Benny Prijono26ff9062006-02-21 23:47:00 +000043#define PJSIP_SIMPLE_EPKGEXISTS (PJSIP_SIMPLE_ERRNO_START+2) /*270002*/
Benny Prijono834aee32006-02-19 01:38:06 +000044
45
Benny Prijonob0808372006-03-02 21:18:58 +000046/************************************************************
47 * PRESENCE ERROR
48 ***********************************************************/
Benny Prijono834aee32006-02-19 01:38:06 +000049/**
50 * @hideinitializer
51 * Expecting SUBSCRIBE request
52 */
Benny Prijono26ff9062006-02-21 23:47:00 +000053#define PJSIP_SIMPLE_ENOTSUBSCRIBE (PJSIP_SIMPLE_ERRNO_START+20) /*270020*/
Benny Prijono834aee32006-02-19 01:38:06 +000054/**
55 * @hideinitializer
56 * No presence associated with subscription
57 */
Benny Prijono26ff9062006-02-21 23:47:00 +000058#define PJSIP_SIMPLE_ENOPRESENCE (PJSIP_SIMPLE_ERRNO_START+21) /*270021*/
Benny Prijono834aee32006-02-19 01:38:06 +000059/**
60 * @hideinitializer
61 * No presence info in server subscription
62 */
Benny Prijono26ff9062006-02-21 23:47:00 +000063#define PJSIP_SIMPLE_ENOPRESENCEINFO (PJSIP_SIMPLE_ERRNO_START+22) /*270022*/
Benny Prijono834aee32006-02-19 01:38:06 +000064/**
65 * @hideinitializer
66 * Bad Content-Type
67 */
Benny Prijono26ff9062006-02-21 23:47:00 +000068#define PJSIP_SIMPLE_EBADCONTENT (PJSIP_SIMPLE_ERRNO_START+23) /*270023*/
Benny Prijono834aee32006-02-19 01:38:06 +000069/**
70 * @hideinitializer
71 * Bad PIDF Message
72 */
Benny Prijono26ff9062006-02-21 23:47:00 +000073#define PJSIP_SIMPLE_EBADPIDF (PJSIP_SIMPLE_ERRNO_START+24) /*270024*/
Benny Prijono834aee32006-02-19 01:38:06 +000074/**
75 * @hideinitializer
76 * Bad XPIDF Message
77 */
Benny Prijono26ff9062006-02-21 23:47:00 +000078#define PJSIP_SIMPLE_EBADXPIDF (PJSIP_SIMPLE_ERRNO_START+25) /*270025*/
Benny Prijono834aee32006-02-19 01:38:06 +000079
80
Benny Prijonob0808372006-03-02 21:18:58 +000081/************************************************************
82 * ISCOMPOSING ERRORS
83 ***********************************************************/
84/**
85 * @hideinitializer
86 * Bad isComposing XML message.
87 */
88#define PJSIP_SIMPLE_EBADISCOMPOSE (PJSIP_SIMPLE_ERRNO_START+40) /*270040*/
89
Benny Prijono834aee32006-02-19 01:38:06 +000090
91#endif /* __PJSIP_SIMPLE_ERRNO_H__ */
92