Thu, 06 Feb 2014 16:19:47 +0530
Fix cross-references and some other warnings
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 12272 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 12272 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16743
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 12272 | 20 | */ |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
21 | /** |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
22 | * SECTION:idle |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
23 | * @section_id: libpurple-idle |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
24 | * @short_description: <filename>idle.h</filename> |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
25 | * @title: Idle API |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | */ |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
27 | |
| 15884 | 28 | #ifndef _PURPLE_IDLE_H_ |
| 29 | #define _PURPLE_IDLE_H_ | |
| 12272 | 30 | |
|
28230
5a6e42fc2b40
Ensure time_t is defined before we use it
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
31 | #include <time.h> |
|
5a6e42fc2b40
Ensure time_t is defined before we use it
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
32 | |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
33 | typedef struct _PurpleIdleUiOps PurpleIdleUiOps; |
|
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
34 | |
| 12272 | 35 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
36 | * PurpleIdleUiOps: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
37 | * |
| 12272 | 38 | * Idle UI operations. |
| 39 | */ | |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
40 | struct _PurpleIdleUiOps |
| 12272 | 41 | { |
| 42 | time_t (*get_time_idle)(void); | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
43 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
44 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
45 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
46 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
47 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
48 | void (*_purple_reserved4)(void); |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
49 | }; |
| 12272 | 50 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28230
diff
changeset
|
51 | G_BEGIN_DECLS |
| 12272 | 52 | |
| 53 | /**************************************************************************/ | |
| 54 | /** @name Idle API */ | |
| 55 | /**************************************************************************/ | |
| 56 | /*@{*/ | |
| 57 | ||
| 58 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
59 | * purple_idle_touch: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
60 | * |
| 12272 | 61 | * Touch our idle tracker. This signifies that the user is |
| 62 | * 'active'. The conversation code calls this when the | |
| 63 | * user sends an IM, for example. | |
| 64 | */ | |
| 15884 | 65 | void purple_idle_touch(void); |
| 12272 | 66 | |
| 67 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
68 | * purple_idle_set: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
69 | * |
| 12272 | 70 | * Fake our idle time by setting the time at which our |
| 71 | * accounts purportedly became idle. This is used by | |
| 72 | * the I'dle Mak'er plugin. | |
| 73 | */ | |
| 15884 | 74 | void purple_idle_set(time_t time); |
| 12272 | 75 | |
| 76 | /*@}*/ | |
| 77 | ||
| 78 | /**************************************************************************/ | |
| 79 | /** @name Idle Subsystem */ | |
| 80 | /**************************************************************************/ | |
| 81 | /*@{*/ | |
| 82 | ||
| 83 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
84 | * purple_idle_set_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
85 | * @ops: The UI operations structure. |
| 12272 | 86 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
87 | * Sets the UI operations structure to be used for idle reporting. |
| 12272 | 88 | */ |
| 15884 | 89 | void purple_idle_set_ui_ops(PurpleIdleUiOps *ops); |
| 12272 | 90 | |
| 91 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
92 | * purple_idle_get_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
93 | * |
| 12272 | 94 | * Returns the UI operations structure used for idle reporting. |
| 95 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
96 | * Returns: The UI operations structure in use. |
| 12272 | 97 | */ |
| 15884 | 98 | PurpleIdleUiOps *purple_idle_get_ui_ops(void); |
| 12272 | 99 | |
| 100 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
101 | * purple_idle_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * |
| 12272 | 103 | * Initializes the idle system. |
| 104 | */ | |
| 15884 | 105 | void purple_idle_init(void); |
| 12272 | 106 | |
| 107 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
108 | * purple_idle_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
109 | * |
| 12272 | 110 | * Uninitializes the idle system. |
| 111 | */ | |
| 15884 | 112 | void purple_idle_uninit(void); |
| 12272 | 113 | |
| 114 | /*@}*/ | |
| 115 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28230
diff
changeset
|
116 | G_END_DECLS |
| 12272 | 117 | |
| 15884 | 118 | #endif /* _PURPLE_IDLE_H_ */ |