Fri, 25 Apr 2025 01:08:11 -0500
SIP: A stubbed out SIP protocol plugin
Testing Done:
Launched in a devenv and verified that the protocol showed up with its icon in the add account dialog. Also called in the turtles.
Reviewed at https://reviews.imfreedom.org/r/3988/
|
43245
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * This library is free software; you can redistribute it and/or |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * modify it under the terms of the GNU Lesser General Public |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * License as published by the Free Software Foundation; either |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * version 2 of the License, or (at your option) any later version. |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * This library is distributed in the hope that it will be useful, |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * Lesser General Public License for more details. |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * You should have received a copy of the GNU Lesser General Public |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * License along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | */ |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | #ifndef PURPLE_SIP_PROTOCOL_H |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | #define PURPLE_SIP_PROTOCOL_H |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | #include <glib.h> |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #include <glib-object.h> |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #include <gplugin-native.h> |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #include <purple.h> |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | G_BEGIN_DECLS |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #define PURPLE_SIP_TYPE_PROTOCOL (purple_sip_protocol_get_type()) |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | G_DECLARE_FINAL_TYPE(PurpleSipProtocol, purple_sip_protocol, PURPLE_SIP, |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | PROTOCOL, PurpleProtocol) |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | G_GNUC_INTERNAL void purple_sip_protocol_register(GPluginNativePlugin *plugin); |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | G_GNUC_INTERNAL PurpleProtocol *purple_sip_protocol_new(void); |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | G_END_DECLS |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
b83427aa2c38
SIP: A stubbed out SIP protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | #endif /* PURPLE_SIP_PROTOCOL_H */ |