author | Myhailo Danylenko <isbear@ukrpost.net> |
Sun, 23 Sep 2012 15:38:29 +0300 | |
changeset 40 | 574e404ab82f |
parent 31 | e404cd1c7077 |
permissions | -rw-r--r-- |
31
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
1 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
2 |
#ifndef MCABBER_TUNE_H |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
3 |
#define MCABBER_TUNE_H |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
4 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
5 |
/* |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
6 |
* tune.h -- Pep tune events |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
7 |
* |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
8 |
* Copyright (C) 2009-2012 Myhailo Danylenko <isbear@ukrpost.net> |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
9 |
* |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
10 |
* This program is free software; you can redistribute it and/or modify |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
11 |
* it under the terms of the GNU General Public License as published by |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
12 |
* the Free Software Foundation; either version 2 of the License, or (at |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
13 |
* your option) any later version. |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
14 |
* |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
15 |
* This program is distributed in the hope that it will be useful, but |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
16 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
18 |
* General Public License for more details. |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
19 |
* |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
20 |
* You should have received a copy of the GNU General Public License |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
21 |
* along with this program; if not, write to the Free Software |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
23 |
* USA |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
24 |
*/ |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
25 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
26 |
#include <glib.h> |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
27 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
28 |
#define NS_TUNE ( "http:/" "/jabber.org/protocol/tune" ) |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
29 |
#define NS_TUNE_NOTIFY ( "http:/" "/jabber.org/protocol/tune+notify" ) |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
30 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
31 |
#define TUNE_ERROR_NOTCONNECTED ( 0x01 ) |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
32 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
33 |
#define OPT_TUNE_PAUSE_IS_STOP "${OPT_TUNE_PAUSE_IS_STOP}" |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
34 |
#define OPT_TUNE_INTERVAL "${OPT_TUNE_INTERVAL}" |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
35 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
36 |
#define HOOK_TUNE_IN ( "${HOOK_TUNE_IN}" ) |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
37 |
#define HOOK_TUNE_OUT ( "${HOOK_TUNE_OUT}" ) |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
38 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
39 |
typedef struct { |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
40 |
const gchar *name; |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
41 |
gchar *value; |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
42 |
} tune_pair_t; |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
43 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
44 |
gboolean pep_tune_request ( const gchar *to, GError **err ); |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
45 |
|
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
46 |
#endif |
e404cd1c7077
Drop publish_*, rework build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff
changeset
|
47 |