Fix compilation error using python2.7
[python-purple] / libpurple / savedstatuses.pxd
1 #
2 #  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
3 #
4 #  This file is part of python-purple.
5 #
6 #  python-purple is free software: you can redistribute it and/or modify
7 #  it under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation, either version 3 of the License, or
9 #  (at your option) any later version.
10 #
11 #  python-purple is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #  GNU General Public License for more details.
15 #
16 #  You should have received a copy of the GNU General Public License
17 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 cimport status
21 cimport glib
22 cimport account
23 cimport status
24
25 cdef extern from *:
26     ctypedef long int time_t
27
28 cdef extern from "libpurple/savedstatuses.h":
29     ctypedef struct PurpleSavedStatus:
30         pass
31
32     PurpleSavedStatus *purple_savedstatus_new(char *title, status.PurpleStatusPrimitive type)
33     void c_purple_savedstatus_activate "purple_savedstatus_activate" (PurpleSavedStatus *saved_status)
34     PurpleSavedStatus *purple_savedstatus_get_current()
35     glib.gboolean purple_savedstatus_is_transient(PurpleSavedStatus *saved_status)
36     void purple_savedstatus_set_substatus(PurpleSavedStatus *status, account.PurpleAccount *account, \
37             status.PurpleStatusType *type, char *message)
38     void purple_savedstatus_set_idleaway(glib.gboolean idleaway)
39     PurpleSavedStatus *purple_savedstatus_find(char *title)
40     PurpleSavedStatus *purple_savedstatus_find_transient_by_type_and_message( \
41             status.PurpleStatusPrimitive type, char *message)
42     void purple_savedstatus_set_message(PurpleSavedStatus *status, char *message)
43     void purple_savedstatus_activate(PurpleSavedStatus *saved_status)
44     void purple_savedstatus_activate_for_account(PurpleSavedStatus *saved_status, \
45             account.PurpleAccount *account)
46     time_t purple_savedstatus_get_creation_time(PurpleSavedStatus *saved_status)
47     void purple_savedstatus_set_title(PurpleSavedStatus *status, char *title)