Tue, 24 Oct 2023 23:07:23 -0500
Tag some miscellanous Since and exports
I checked all the `G_DECLARE*` macros and `_get_type` functions, and then found a few more `Since` tags.
Testing Done:
Compiled.
Reviewed at https://reviews.imfreedom.org/r/2700/
|
11035
c10c382f4896
[gaim-migrate @ 12922]
Gary Kramlich <grim@reaperworld.com>
parents:
10860
diff
changeset
|
1 | /* |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 6065 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 7 | * source distribution. | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
8 | * |
| 6065 | 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, | |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | * GNU General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 6065 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40332
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40332
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40332
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40332
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
27 | #ifndef PURPLE_STATUS_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
28 | #define PURPLE_STATUS_H |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
29 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
30 | #include "purpleversion.h" |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
31 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
32 | #define PURPLE_TYPE_STATUS (purple_status_get_type()) |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
33 | typedef struct _PurpleStatus PurpleStatus; |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
34 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
35 | #define PURPLE_TYPE_STATUS_TYPE (purple_status_type_get_type()) |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
36 | |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
37 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
38 | * PurpleStatusType: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
39 | * |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
40 | * PurpleStatusType's are created by each protocol. They outline the |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
41 | * available statuses of the protocol. AIM, for example, supports |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
42 | * an available state with an optional available message, an away |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
43 | * state with a mandatory message, and an invisible state (which is |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
44 | * technically "independent" of the other two, but we'll get into |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
45 | * that later). PurpleStatusTypes are very permanent. They are |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
46 | * hardcoded in each protocol and will not change often. And because |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
47 | * they are hardcoded, they do not need to be saved to any XML file. |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
48 | */ |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
49 | typedef struct _PurpleStatusType PurpleStatusType; |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
50 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | #define PURPLE_TYPE_STATUS_ATTRIBUTE (purple_status_attribute_get_type()) |
|
40613
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
52 | |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
53 | /** |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
54 | * PurpleStatus: |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
55 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
56 | * A PurpleStatus can be thought of as an "instance" of a PurpleStatusType. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
57 | * If you're familiar with object-oriented programming languages |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
58 | * then this should be immediately clear. Say, for example, that |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
59 | * one of your AIM buddies has set himself as "away." You have a |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
60 | * PurpleBuddy node for this person in your buddy list. Purple wants |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
61 | * to mark this buddy as "away," so it creates a new PurpleStatus. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
62 | * The PurpleStatus has its PurpleStatusType set to the "away" state |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
63 | * for the oscar protocol. The PurpleStatus also contains the buddy's |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
64 | * away message. PurpleStatuses are sometimes saved, depending on |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
65 | * the context. The current PurpleStatuses associated with each of |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
66 | * your accounts are saved so that the next time you start Purple, |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
67 | * your accounts will be set to their last known statuses. There |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
68 | * is also a list of saved statuses that are written to the |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
69 | * status.xml file. Also, each PurpleStatus has a "saveable" boolean. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
70 | * If "saveable" is set to FALSE then the status is NEVER saved. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
71 | * All PurpleStatuses should be inside a PurplePresence. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
72 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
73 | * A PurpleStatus is either "independent" or "exclusive." |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
74 | * Independent statuses can be active or inactive and they don't |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
75 | * affect anything else. However, you can only have one exclusive |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
76 | * status per PurplePresence. If you activate one exclusive status, |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
77 | * then the previous exclusive status is automatically deactivated. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
78 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
79 | * A PurplePresence is like a collection of PurpleStatuses (plus some |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
80 | * other random info). |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
81 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
82 | * See <link linkend="libpurple-purplepresence">Presence API</link> |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
83 | */ |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
84 | typedef struct _PurpleStatusAttribute PurpleStatusAttribute; |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
85 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
86 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
87 | * PurpleStatusPrimitive: |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
88 | * @PURPLE_STATUS_UNSET: The status is not set |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
89 | * @PURPLE_STATUS_OFFLINE: The status is offline |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
90 | * @PURPLE_STATUS_AVAILABLE: The status is available |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
91 | * @PURPLE_STATUS_UNAVAILABLE: The status is unavailable |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
92 | * @PURPLE_STATUS_INVISIBLE: The stuatus is invisible |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
93 | * @PURPLE_STATUS_AWAY: The status is away |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
94 | * @PURPLE_STATUS_EXTENDED_AWAY: The status is extended away/do not disturb |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
95 | * @PURPLE_STATUS_MOBILE: The status is mobile |
|
39300
af611557a710
status: Silence glib-mkenums warning
Mike Ruprecht <cmaiku@gmail.com>
parents:
38716
diff
changeset
|
96 | * @PURPLE_STATUS_NUM_PRIMITIVES: The number of #PurpleStatusPrimitive<!-- -->s |
|
38563
57f76ef581c8
status: Tweak PurpleStatusPrimitive's documentation
Mike Ruprecht <cmaiku@gmail.com>
parents:
38055
diff
changeset
|
97 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
98 | * A primitive defining the basic structure of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
99 | */ |
|
21201
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
100 | /* |
|
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
101 | * If you add a value to this enum, make sure you update |
|
24907
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
102 | * the status_primitive_map and primitive_scores arrays in status.c. |
|
21201
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
103 | */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
104 | typedef enum |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
105 | { |
| 15884 | 106 | PURPLE_STATUS_UNSET = 0, |
| 107 | PURPLE_STATUS_OFFLINE, | |
| 108 | PURPLE_STATUS_AVAILABLE, | |
| 109 | PURPLE_STATUS_UNAVAILABLE, | |
| 110 | PURPLE_STATUS_INVISIBLE, | |
| 111 | PURPLE_STATUS_AWAY, | |
| 112 | PURPLE_STATUS_EXTENDED_AWAY, | |
| 113 | PURPLE_STATUS_MOBILE, | |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
114 | |
|
38055
99e670730bf7
This is more correct but it doesn't fix the warning from glib-mkenums
Gary Kramlich <grim@reaperworld.com>
parents:
38054
diff
changeset
|
115 | PURPLE_STATUS_NUM_PRIMITIVES, /*< skip >*/ |
| 15884 | 116 | } PurpleStatusPrimitive; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
117 | |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
118 | #include "purplepresence.h" |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
119 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
120 | G_BEGIN_DECLS |
|
14988
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14254
diff
changeset
|
121 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
122 | /**************************************************************************/ |
| 35472 | 123 | /* PurpleStatusPrimitive API */ |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
124 | /**************************************************************************/ |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
125 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
126 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
127 | * purple_primitive_get_id_from_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
128 | * @type: A primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
129 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
130 | * Lookup the id of a primitive status type based on the type. This |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
131 | * ID is a unique plain-text name of the status, without spaces. |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
132 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
133 | * Returns: The unique ID for this type. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
134 | */ |
| 15884 | 135 | const char *purple_primitive_get_id_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
136 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
137 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * purple_primitive_get_name_from_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
139 | * @type: A primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
140 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
141 | * Lookup the name of a primitive status type based on the type. This |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
142 | * name is the plain-English name of the status type. It is usually one |
|
12037
0f1e1fa4b601
[gaim-migrate @ 14330]
Evan Schoenberg <evands@pidgin.im>
parents:
11696
diff
changeset
|
143 | * or two words. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
144 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
145 | * Returns: The name of this type, suitable for users to see. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
146 | */ |
| 15884 | 147 | const char *purple_primitive_get_name_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
148 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
149 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
150 | * purple_primitive_get_type_from_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
151 | * @id: The unique ID of a primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
152 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
153 | * Lookup the value of a primitive status type based on the id. The |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
154 | * ID is a unique plain-text name of the status, without spaces. |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
155 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
156 | * Returns: The PurpleStatusPrimitive value. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
157 | */ |
| 15884 | 158 | PurpleStatusPrimitive purple_primitive_get_type_from_id(const char *id); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
159 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
160 | /**************************************************************************/ |
| 35472 | 161 | /* PurpleStatusType API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
162 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
163 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
164 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * purple_status_type_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
166 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
167 | * The standard _get_type function for #PurpleStatusType. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
168 | * |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
169 | * Returns: The #GType for #PurpleStatusType. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
170 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
171 | * Since: 3.0.0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
172 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
173 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
174 | GType purple_status_type_get_type(void); |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
175 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
176 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
177 | * purple_status_type_new_full: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
178 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
179 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
180 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
181 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
182 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
183 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
184 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
185 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
186 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
187 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
188 | * Creates a new status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
189 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
190 | * Returns: (transfer full): A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
191 | */ |
| 15884 | 192 | PurpleStatusType *purple_status_type_new_full(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
193 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
194 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
195 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
196 | gboolean independent); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
197 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
198 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
199 | * purple_status_type_new: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
200 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
201 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
202 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
203 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
204 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
205 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
206 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
207 | * Creates a new status type with some default values (saveable and not |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
208 | * independent). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
209 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
210 | * Returns: (transfer full): A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
211 | */ |
| 15884 | 212 | PurpleStatusType *purple_status_type_new(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
213 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
214 | gboolean user_settable); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
215 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
216 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
217 | * purple_status_type_new_with_attrs: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
218 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
219 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
220 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
221 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
222 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
223 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
224 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
225 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
226 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
227 | * @attr_id: The ID of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
228 | * @attr_name: The name of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
229 | * @attr_value: The value type of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
230 | * @...: Additional attribute information. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
231 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
232 | * Creates a new status type with attributes. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
233 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
234 | * Returns: (transfer full): A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
235 | */ |
| 15884 | 236 | PurpleStatusType *purple_status_type_new_with_attrs(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
237 | const char *id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
238 | const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
239 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
240 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
241 | gboolean independent, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
242 | const char *attr_id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
243 | const char *attr_name, |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
244 | GValue *attr_value, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
245 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
246 | /** |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
247 | * purple_status_type_new_with_attrsv: (rename-to purple_status_type_new_with_attrs): |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
248 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
249 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
250 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
251 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
252 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
253 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
254 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
255 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
256 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
257 | * @n_attributes: The number of attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
258 | * @attr_id: (array length=n_attributes): The IDs of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
259 | * @attr_name: (array length=n_attributes): The names of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
260 | * @attr_value: (array length=n_attributes): The value types of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
261 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
262 | * Creates a new status type with attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
263 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
264 | * Returns: (transfer full): A new status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
265 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
266 | * Since: 3.0.0 |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
267 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
268 | PURPLE_AVAILABLE_IN_3_0 |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
269 | PurpleStatusType *purple_status_type_new_with_attrsv(PurpleStatusPrimitive primitive, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
270 | const gchar *id, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
271 | const gchar *name, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
272 | gboolean saveable, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
273 | gboolean user_settable, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
274 | gboolean independent, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
275 | guint n_attributes, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
276 | const gchar *attr_id[], |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
277 | const gchar *attr_name[], |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
278 | GValue *attr_value[]); |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
279 | |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
280 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
281 | * purple_status_type_destroy: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
282 | * @status_type: The status type to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
283 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
284 | * Destroys a status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
285 | */ |
| 15884 | 286 | void purple_status_type_destroy(PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
287 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
288 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
289 | * purple_status_type_get_primitive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
290 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
291 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
292 | * Returns the primitive type of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
293 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
294 | * Returns: The primitive type of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
295 | */ |
| 15884 | 296 | PurpleStatusPrimitive purple_status_type_get_primitive( |
| 297 | const PurpleStatusType *status_type); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
298 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
299 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
300 | * purple_status_type_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
301 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
302 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
303 | * Returns the ID of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
304 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
305 | * Returns: The ID of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
306 | */ |
| 15884 | 307 | const char *purple_status_type_get_id(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
308 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
309 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
310 | * purple_status_type_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
311 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
312 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
313 | * Returns the name of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
314 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
315 | * Returns: The name of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
316 | */ |
| 15884 | 317 | const char *purple_status_type_get_name(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
318 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
319 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
320 | * purple_status_type_is_saveable: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
321 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
322 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
323 | * Returns whether or not the status type is saveable. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
324 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
325 | * Returns: TRUE if user-defined statuses based off this type are saveable. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
326 | * FALSE otherwise. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
327 | */ |
| 15884 | 328 | gboolean purple_status_type_is_saveable(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
329 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
330 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
331 | * purple_status_type_is_user_settable: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
332 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
333 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
334 | * Returns whether or not the status type can be set or modified by the |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
335 | * user. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
336 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
337 | * Returns: TRUE if the status type can be set or modified by the user. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
338 | * FALSE if it's a protocol-set setting. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
339 | */ |
| 15884 | 340 | gboolean purple_status_type_is_user_settable(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
341 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
342 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
343 | * purple_status_type_is_independent: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
344 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
345 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
346 | * Returns whether or not the status type is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
347 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
348 | * Independent status types are non-exclusive. If other status types on |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
349 | * the same hierarchy level are set, this one will not be affected. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
350 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
351 | * Returns: TRUE if the status type is independent, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
352 | */ |
| 15884 | 353 | gboolean purple_status_type_is_independent(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
354 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
355 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
356 | * purple_status_type_is_exclusive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
357 | * @status_type: The status type. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
358 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10067
diff
changeset
|
359 | * Returns whether the status type is exclusive. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
360 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
361 | * Returns: TRUE if the status type is exclusive, FALSE otherwise. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
362 | */ |
| 15884 | 363 | gboolean purple_status_type_is_exclusive(const PurpleStatusType *status_type); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
364 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
365 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
366 | * purple_status_type_is_available: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
367 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
368 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
369 | * Returns whether or not a status type is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
370 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
371 | * Available status types are online and possibly invisible, but not away. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
372 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
373 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
374 | */ |
| 15884 | 375 | gboolean purple_status_type_is_available(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
376 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
377 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
378 | * purple_status_type_get_attr: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
379 | * @status_type: The status type containing the attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
380 | * @id: The ID of the desired attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
381 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
382 | * Returns the attribute with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
383 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
384 | * Returns: The attribute, if found. NULL otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
385 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
386 | PurpleStatusAttribute *purple_status_type_get_attr(const PurpleStatusType *status_type, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
387 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
388 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
389 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
390 | * purple_status_type_get_attrs: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
391 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
392 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
393 | * Returns a list of all attributes in a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
394 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
395 | * Returns: (element-type PurpleStatusAttribute) (transfer none): The list of attributes. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
396 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16870
diff
changeset
|
397 | GList *purple_status_type_get_attrs(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
398 | |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
399 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
400 | * purple_status_type_find_with_id: |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
401 | * @status_types: (element-type PurpleStatus) (transfer none): A list of status |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
402 | * types. Often account->status_types. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
403 | * @id: The unique ID of the status type you wish to find. |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
404 | * |
| 15884 | 405 | * Find the PurpleStatusType with the given id. |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
406 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
407 | * Returns: The status type with the given ID, or NULL if one could |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
408 | * not be found. |
|
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
409 | */ |
| 15884 | 410 | const PurpleStatusType *purple_status_type_find_with_id(GList *status_types, |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
411 | const char *id); |
|
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
412 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
413 | /**************************************************************************/ |
| 35472 | 414 | /* PurpleStatusAttribute API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
415 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
416 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
417 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
418 | * purple_status_attribute_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
419 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
420 | * The standard _get_type function for #PurpleStatusAttribute. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
421 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
422 | * Returns: The #GType for the #PurpleStatusAttribute boxed structure. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
423 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
424 | * Since: 3.0.0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
425 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
426 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
427 | GType purple_status_attribute_get_type(void); |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
428 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
429 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
430 | * purple_status_attribute_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
431 | * @id: The ID of the attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
432 | * @name: The name presented to the user. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
433 | * @value_type: The type of data contained in the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
434 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
435 | * Creates a new status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
436 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
437 | * Returns: A new status attribute. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
438 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
439 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
440 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
441 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
442 | PurpleStatusAttribute *purple_status_attribute_new(const char *id, const char *name, |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
443 | GValue *value_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
444 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
445 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
446 | * purple_status_attribute_destroy: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
447 | * @attr: The status attribute to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
448 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
449 | * Destroys a status attribute. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
450 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
451 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
452 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
453 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
454 | void purple_status_attribute_destroy(PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
455 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
456 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
457 | * purple_status_attribute_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
458 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
459 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
460 | * Returns the ID of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
461 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
462 | * Returns: The status attribute's ID. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
463 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
464 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
465 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
466 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
467 | const char *purple_status_attribute_get_id(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
468 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
469 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
470 | * purple_status_attribute_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
471 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
472 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
473 | * Returns the name of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
474 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
475 | * Returns: The status attribute's name. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
476 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
477 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
478 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
479 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
480 | const char *purple_status_attribute_get_name(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
481 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
482 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
483 | * purple_status_attribute_get_value: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
484 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
485 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
486 | * Returns the value of a status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
487 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
488 | * Returns: The status attribute's value. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
489 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
490 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
491 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
492 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
493 | GValue *purple_status_attribute_get_value(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
494 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
495 | /**************************************************************************/ |
| 35472 | 496 | /* PurpleStatus API */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
497 | /**************************************************************************/ |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
498 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
499 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
500 | * purple_status_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
501 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
502 | * The standard _get_type function for #PurpleStatus. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
503 | * |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
504 | * Returns: The #GType for #PurpleStatus. |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
505 | */ |
|
42400
64c85dc25cd4
Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
506 | PURPLE_AVAILABLE_IN_ALL |
|
39543
b72187eb4335
Use G_DECLARE_FINAL_TYPE for PurpleStatus.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39515
diff
changeset
|
507 | G_DECLARE_FINAL_TYPE(PurpleStatus, purple_status, PURPLE, STATUS, GObject) |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
508 | |
|
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
509 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
510 | * purple_status_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
511 | * @status_type: The type of status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
512 | * @presence: The parent presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
513 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
514 | * Creates a new status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
515 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
516 | * Returns: The new status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
517 | */ |
| 15884 | 518 | PurpleStatus *purple_status_new(PurpleStatusType *status_type, |
| 519 | PurplePresence *presence); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
520 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
521 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
522 | * purple_status_set_active: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
523 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
524 | * @active: The active state. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
525 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
526 | * Sets whether or not a status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
527 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
528 | * This should only be called by the account, conversation, and buddy APIs. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
529 | */ |
| 15884 | 530 | void purple_status_set_active(PurpleStatus *status, gboolean active); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
531 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
532 | /** |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
533 | * purple_status_set_active_with_attributes: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
534 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
535 | * @active: The active state. |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
536 | * @attrs: (nullable) (element-type utf8 gpointer): A hash table of attributes |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
537 | * to set on the status. This hash table's keys are valid attribute |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
538 | * names for this PurpleStatusType. The hash table is not modified or |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
539 | * freed by this function. |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
540 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
541 | * Sets whether or not a status is active. |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
542 | * |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
543 | * This should only be called by the account, conversation, and buddy APIs. |
|
40332
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
544 | * |
|
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
545 | * Since: 3.0.0 |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
546 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
547 | PURPLE_AVAILABLE_IN_3_0 |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
548 | void purple_status_set_active_with_attributes(PurpleStatus *status, gboolean active, GHashTable *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
549 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
550 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
551 | * purple_status_get_status_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
552 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
553 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
554 | * Returns the status's type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
555 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
556 | * Returns: The status's type. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
557 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
558 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
559 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
560 | PURPLE_AVAILABLE_IN_3_0 |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
561 | PurpleStatusType *purple_status_get_status_type(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
562 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
563 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
564 | * purple_status_get_presence: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
565 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
566 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
567 | * Returns the status's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
568 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
569 | * Returns: (transfer none): The status's presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
570 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
571 | PurplePresence *purple_status_get_presence(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
572 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
573 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
574 | * purple_status_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
575 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
576 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
577 | * Returns the status's type ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
578 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
579 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
580 | * purple_status_type_get_id(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
581 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
582 | * Returns: The status's ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
583 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
584 | const char *purple_status_get_id(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
585 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
586 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
587 | * purple_status_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
588 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
589 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
590 | * Returns the status's name. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
591 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
592 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
593 | * purple_status_type_get_name(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
594 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
595 | * Returns: The status's name. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
596 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
597 | const char *purple_status_get_name(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
598 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
599 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
600 | * purple_status_is_independent: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
601 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
602 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
603 | * Returns whether or not a status is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
604 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
605 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
606 | * purple_status_type_is_independent(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
607 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
608 | * Returns: TRUE if the status is independent, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
609 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
610 | gboolean purple_status_is_independent(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
611 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
612 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
613 | * purple_status_is_exclusive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
614 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
615 | * |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
616 | * Returns whether or not a status is exclusive. |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
617 | * |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
618 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
619 | * purple_status_type_is_exclusive(purple_status_get_status_type(status)). |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
620 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
621 | * Returns: TRUE if the status is exclusive, FALSE otherwise. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
622 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
623 | gboolean purple_status_is_exclusive(PurpleStatus *status); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
624 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
625 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
626 | * purple_status_is_available: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
627 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
628 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
629 | * Returns whether or not a status is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
630 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
631 | * Available statuses are online and possibly invisible, but not away or idle. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
632 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
633 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
634 | * purple_status_type_is_available(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
635 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
636 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
637 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
638 | gboolean purple_status_is_available(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
639 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
640 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
641 | * purple_status_is_active: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
642 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
643 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
644 | * Returns the active state of a status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
645 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
646 | * Returns: The active state of the status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
647 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
648 | gboolean purple_status_is_active(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
649 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
650 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
651 | * purple_status_is_online: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
652 | * @status: The status. |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
653 | * |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
654 | * Returns whether or not a status is considered 'online' |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
655 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
656 | * Returns: TRUE if the status is considered online, FALSE otherwise |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
657 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
658 | gboolean purple_status_is_online(PurpleStatus *status); |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
659 | |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
660 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
661 | * purple_status_get_attr_value: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
662 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
663 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
664 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
665 | * Returns the value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
666 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
667 | * Returns: The value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
668 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
669 | GValue *purple_status_get_attr_value(PurpleStatus *status, |
|
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
670 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
671 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
672 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
673 | * purple_status_get_attr_boolean: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
674 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
675 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
676 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
677 | * Returns the boolean value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
678 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
679 | * Returns: The boolean value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
680 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
681 | gboolean purple_status_get_attr_boolean(PurpleStatus *status, |
|
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
682 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
683 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
684 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
685 | * purple_status_get_attr_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
686 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
687 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
688 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
689 | * Returns the integer value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
690 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
691 | * Returns: The integer value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
692 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
693 | int purple_status_get_attr_int(PurpleStatus *status, const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
694 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
695 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
696 | * purple_status_get_attr_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
697 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
698 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
699 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
700 | * Returns the string value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
701 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
702 | * Returns: The string value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
703 | */ |
|
39515
80425f8a38e2
Clean up a function prototype to be on one line
Gary Kramlich <grim@reaperworld.com>
parents:
39514
diff
changeset
|
704 | const char *purple_status_get_attr_string(PurpleStatus *status, const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
705 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
706 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
707 | * purple_status_compare: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
708 | * @status1: The first status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
709 | * @status2: The second status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
710 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
711 | * Compares two statuses for availability. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
712 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
713 | * Returns: -1 if @status1 is more available than @status2. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
714 | * 0 if @status1 is equal to @status2. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
715 | * 1 if @status2 is more available than @status1. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
716 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
717 | gint purple_status_compare(PurpleStatus *status1, PurpleStatus *status2); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
718 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
719 | /**************************************************************************/ |
| 35472 | 720 | /* Statuses subsystem */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
721 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
722 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
723 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
724 | * purple_statuses_get_handle: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
725 | * |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
726 | * Get the handle for the status subsystem. |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
727 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
728 | * Returns: the handle to the status subsystem |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
729 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
730 | * Since: 3.0.0 |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
731 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
732 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
733 | void *purple_statuses_get_handle(void); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
734 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
735 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
736 | * purple_statuses_init: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
737 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
738 | * Initializes the status subsystem. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
739 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
740 | void purple_statuses_init(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
741 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
742 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
743 | * purple_statuses_uninit: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
744 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
745 | * Uninitializes the status subsystem. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
746 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
747 | void purple_statuses_uninit(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
748 | |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
749 | /**************************************************************************/ |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
750 | /* Helpers */ |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
751 | /**************************************************************************/ |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
752 | |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
753 | /** |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
754 | * purple_attrs_from_vargs: |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
755 | * @args: A list of attributes to parse. This list is |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
756 | * composed of key/value pairs, where each key is a valid |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
757 | * attribute name for this PurpleStatusType. The list should |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
758 | * be NULL terminated. |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
759 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
760 | * Returns a hash table of attributes constructed from args. |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
761 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
762 | * Returns: (element-type utf8 gpointer) (transfer container): The hash table of attributes. |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
763 | * |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
764 | * Since: 3.0.0 |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
765 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
766 | PURPLE_AVAILABLE_IN_3_0 |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
767 | GHashTable *purple_attrs_from_vargs(va_list args); |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
768 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
769 | G_END_DECLS |
| 15124 | 770 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
771 | #endif /* PURPLE_STATUS_H */ |