Wed, 08 Feb 2023 08:59:47 -0600
Export Account::error
I can't think of a good reason why we shouldn't expose the error property on
Accounts. But I would like to be able to set the error from the UI when there
is an error in the settings for example.
Testing Done:
Built the docs, ran the tests, used the prune connection action in the demo protocol plugin and verified everything was still working.
Reviewed at https://reviews.imfreedom.org/r/2216/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 5872 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
|
11137
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
10589
diff
changeset
|
6 | * |
| 5872 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19742
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5872 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35469
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
22 | #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:
40439
diff
changeset
|
23 | # error "only <purple.h> may be included directly" |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
24 | #endif |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
25 | |
|
41276
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41208
diff
changeset
|
26 | #ifndef PURPLE_INTERNAL_H |
|
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41208
diff
changeset
|
27 | #define PURPLE_INTERNAL_H |
|
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41208
diff
changeset
|
28 | |
| 5872 | 29 | #ifdef HAVE_CONFIG_H |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
30 | # ifdef GETTEXT_PACKAGE |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
31 | # undef GETTEXT_PACKAGE |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
32 | # endif |
|
6371
e92b66ee5518
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
33 | # include <config.h> |
| 5872 | 34 | #endif |
| 35 | ||
|
41682
289867067994
Clean up a bunch of stuff in internal.h
Gary Kramlich <grim@reaperworld.com>
parents:
41276
diff
changeset
|
36 | #define BUF_LEN 2048 |
| 5872 | 37 | #define BUF_LONG BUF_LEN * 2 |
| 38 | ||
|
5912
32619a71edd2
[gaim-migrate @ 6344]
Herman Bloggs <herman@bluedigits.com>
parents:
5872
diff
changeset
|
39 | #ifndef _WIN32 |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
40 | # include <sys/time.h> |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
41 | # include <sys/wait.h> |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
42 | # include <sys/time.h> |
| 5872 | 43 | # include <netinet/in.h> |
| 44 | # include <sys/socket.h> | |
| 6170 | 45 | # include <arpa/inet.h> |
| 5872 | 46 | # include <sys/un.h> |
| 47 | # include <sys/utsname.h> | |
| 48 | # include <netdb.h> | |
| 49 | # include <signal.h> | |
| 50 | # include <unistd.h> | |
| 51 | #endif | |
| 52 | ||
| 53 | #ifndef HOST_NAME_MAX | |
| 54 | # define HOST_NAME_MAX 255 | |
| 55 | #endif | |
| 56 | ||
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
57 | #ifdef _WIN32 |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40307
diff
changeset
|
58 | # include "win32/win32dep.h" |
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
59 | #endif |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
60 | |
|
27708
5dc9e57a6685
HAVE_CONFIG_H is not defined when building the perl plugin, so work around
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27705
diff
changeset
|
61 | #ifdef HAVE_CONFIG_H |
|
27705
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
62 | #if SIZEOF_TIME_T == 4 |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
63 | # define PURPLE_TIME_T_MODIFIER "lu" |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
64 | #elif SIZEOF_TIME_T == 8 |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
65 | # define PURPLE_TIME_T_MODIFIER "zu" |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
66 | #else |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
67 | #error Unknown size of time_t |
|
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
68 | #endif |
|
27708
5dc9e57a6685
HAVE_CONFIG_H is not defined when building the perl plugin, so work around
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27705
diff
changeset
|
69 | #endif |
|
27705
06cdb9c6366f
Fix this compiler warning:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27539
diff
changeset
|
70 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39433
diff
changeset
|
71 | #endif /* PURPLE_INTERNAL_H */ |