Debian Codegraph @

Xpjproject/pjlib/src/pj/sock_qos_dummy.c

raw symbols SCIP
1 /*
2 * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 #include <pj/sock_qos.h>
19 #include <pj/errno.h>
20 #include <pj/log.h>
21
22 /* Dummy implementation of QoS API.
23 * (this is controlled by pjlib's config.h)
24 */
25 #if defined(PJ_QOS_IMPLEMENTATION) && PJ_QOS_IMPLEMENTATION==PJ_QOS_DUMMY
26
27 #define THIS_FILE "sock_qos_dummy.c"
28
29
30 PJ_DEF(pj_status_t) pj_sock_set_qos_params(pj_sock_t sock,
31 pj_qos_params *param)
32 {
33 PJ_UNUSED_ARG(sock);
34 PJ_UNUSED_ARG(param);
35
36 PJ_LOG(4,(THIS_FILE, "pj_sock_set_qos_params() is not implemented "
37 "for this platform"));
38 return PJ_ENOTSUP;
39 }
40
41 PJ_DEF(pj_status_t) pj_sock_set_qos_type(pj_sock_t sock,
42 pj_qos_type type)
43 {
44 PJ_UNUSED_ARG(sock);
45 PJ_UNUSED_ARG(type);
46
47 PJ_LOG(4,(THIS_FILE, "pj_sock_set_qos_type() is not implemented "
48 "for this platform"));
49 return PJ_ENOTSUP;
50 }
51
52
53 PJ_DEF(pj_status_t) pj_sock_get_qos_params(pj_sock_t sock,
54 pj_qos_params *p_param)
55 {
56 PJ_UNUSED_ARG(sock);
57 PJ_UNUSED_ARG(p_param);
58
59 PJ_LOG(4,(THIS_FILE, "pj_sock_get_qos_params() is not implemented "
60 "for this platform"));
61 return PJ_ENOTSUP;
62 }
63
64 PJ_DEF(pj_status_t) pj_sock_get_qos_type(pj_sock_t sock,
65 pj_qos_type *p_type)
66 {
67 PJ_UNUSED_ARG(sock);
68 PJ_UNUSED_ARG(p_type);
69
70 PJ_LOG(4,(THIS_FILE, "pj_sock_get_qos_type() is not implemented "
71 "for this platform"));
72 return PJ_ENOTSUP;
73 }
74
75 #endif /* PJ_QOS_DUMMY */