Mon, 12 Dec 2022 23:41:40 -0600
Bump C standard to C99 for XMPP and fix warnings
Testing Done:
Touch all XMPP source files, recompiled and saw no new warnings.
Reviewed at https://reviews.imfreedom.org/r/2125/
| 7014 | 1 | /** |
| 2 | * @file message.h Message handlers | |
| 3 | * | |
| 15884 | 4 | * purple |
| 7014 | 5 | * |
|
28322
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
6 | * Purple is the legal property of its developers, whose names are too numerous |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
7 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
8 | * source distribution. |
| 7014 | 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * 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:
15884
diff
changeset
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 7014 | 23 | */ |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
24 | |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
25 | #ifndef PURPLE_JABBER_MESSAGE_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
26 | #define PURPLE_JABBER_MESSAGE_H |
| 7014 | 27 | |
|
40358
e6fe6fc1f516
move all protocols, purple plugins, and purple tests to use purple.h instead of including files individually
Gary Kramlich <grim@reaperworld.com>
parents:
39819
diff
changeset
|
28 | #include <purple.h> |
|
e6fe6fc1f516
move all protocols, purple plugins, and purple tests to use purple.h instead of including files individually
Gary Kramlich <grim@reaperworld.com>
parents:
39819
diff
changeset
|
29 | |
| 7014 | 30 | #include "jabber.h" |
| 31 | ||
|
39556
622bf98df0ac
Remove unnecessary struct tags.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
36077
diff
changeset
|
32 | typedef struct { |
| 7014 | 33 | JabberStream *js; |
| 34 | enum { | |
| 35 | JABBER_MESSAGE_NORMAL, | |
| 36 | JABBER_MESSAGE_CHAT, | |
| 37 | JABBER_MESSAGE_GROUPCHAT, | |
| 38 | JABBER_MESSAGE_HEADLINE, | |
| 39 | JABBER_MESSAGE_ERROR, | |
| 40 | JABBER_MESSAGE_GROUPCHAT_INVITE, | |
|
17779
773326802e26
Fixed whitespace to match the coding convention used in libpurple
Andreas Monitzer <am@adiumx.com>
parents:
17768
diff
changeset
|
41 | JABBER_MESSAGE_EVENT, |
| 7014 | 42 | JABBER_MESSAGE_OTHER |
| 43 | } type; | |
|
41239
735f7114318d
Port JabberMessage->sent to GDateTime and use g_date_time_new_from_iso8601 instead of purple_str_to_time.
Gary Kramlich <grim@reaperworld.com>
parents:
41176
diff
changeset
|
44 | GDateTime *sent; |
|
9584
1a6198375303
[gaim-migrate @ 10427]
Nathan Fredrickson <nathan@silverorange.com>
parents:
8400
diff
changeset
|
45 | gboolean delayed; |
|
40742
2fc55152b79c
Fix up the XEP-0280 carbons support.
Gary Kramlich <grim@reaperworld.com>
parents:
40697
diff
changeset
|
46 | gboolean forwarded; |
|
2fc55152b79c
Fix up the XEP-0280 carbons support.
Gary Kramlich <grim@reaperworld.com>
parents:
40697
diff
changeset
|
47 | gboolean outgoing; |
| 13484 | 48 | char *id; |
| 7014 | 49 | char *from; |
| 50 | char *to; | |
| 51 | char *subject; | |
| 52 | char *body; | |
| 53 | char *xhtml; | |
| 54 | char *password; | |
| 55 | char *error; | |
| 8400 | 56 | char *thread_id; |
| 7014 | 57 | enum { |
|
27429
3313d7d74962
Remove code for obsoleted XEP-0022 (Message Events)
Paul Aurich <darkrain42@pidgin.im>
parents:
26984
diff
changeset
|
58 | JM_STATE_NONE, |
| 13708 | 59 | JM_STATE_ACTIVE, |
| 60 | JM_STATE_COMPOSING, | |
| 61 | JM_STATE_PAUSED, | |
| 62 | JM_STATE_INACTIVE, | |
| 63 | JM_STATE_GONE | |
| 64 | } chat_state; | |
| 7145 | 65 | GList *etc; |
|
17779
773326802e26
Fixed whitespace to match the coding convention used in libpurple
Andreas Monitzer <am@adiumx.com>
parents:
17768
diff
changeset
|
66 | GList *eventitems; |
| 7014 | 67 | } JabberMessage; |
| 68 | ||
| 7971 | 69 | void jabber_message_free(JabberMessage *jm); |
| 70 | ||
| 71 | void jabber_message_send(JabberMessage *jm); | |
| 7014 | 72 | |
|
34935
686fa55b0deb
Replaced xmlnode with PurpleXmlNode, and xmlnode_* API with purple_xmlnode_* API
Ankit Vani <a@nevitus.org>
parents:
34670
diff
changeset
|
73 | void jabber_message_parse(JabberStream *js, PurpleXmlNode *packet); |
|
40507
77d7bc9e5151
Make PurpleProtocolIM a proper interface
Gary Kramlich <grim@reaperworld.com>
parents:
40358
diff
changeset
|
74 | int jabber_message_send_im(PurpleProtocolIM *pim, PurpleConnection *gc, PurpleMessage *msg); |
|
40697
81f81f5d2f39
Split PurpleProtocolChat to its own file and clean up the API.
Gary Kramlich <grim@reaperworld.com>
parents:
40507
diff
changeset
|
75 | int jabber_message_send_chat(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, int id, PurpleMessage *msg); |
| 7014 | 76 | |
|
40507
77d7bc9e5151
Make PurpleProtocolIM a proper interface
Gary Kramlich <grim@reaperworld.com>
parents:
40358
diff
changeset
|
77 | unsigned int jabber_send_typing(PurpleProtocolIM *pim, PurpleConnection *gc, const char *who, PurpleIMTypingState state); |
| 7971 | 78 | |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
79 | #endif /* PURPLE_JABBER_MESSAGE_H */ |