grim/purple-spasm
Clone
Summary
Browse
Changes
Graph
PURPLE_PLUGINS is the devil
2017-04-24, Gary Kramlich
c5df3f7db148
PURPLE_PLUGINS is the devil
#include
<glib.h>
#define PURPLE_PLUGINS
#include
"notify.h"
#include
"plugin.h"
#include
"version.h"
static
gboolean
plugin_load
(
PurplePlugin
*
plugin
)
{
purple_notify_message
(
plugin
,
PURPLE_NOTIFY_MSG_INFO
,
"Hello World!"
,
"This is the Hello World! plugin :)"
,
NULL
,
NULL
,
NULL
);
return
TRUE
;
}
static
PurplePluginInfo
info
=
{
.
magic
=
PURPLE_PLUGIN_MAGIC
,
.
major_version
=
PURPLE_MAJOR_VERSION
,
.
minor_version
=
PURPLE_MINOR_VERSION
,
.
type
=
PURPLE_PLUGIN_STANDARD
,
.
priority
=
PURPLE_PRIORITY_DEFAULT
,
.
id
=
"core-hello_world"
,
.
name
=
"Hello World!"
,
.
version
=
PLUGIN_VERSION
,
.
summary
=
"Hello World Plugin"
,
.
description
=
"Hello World Plugin"
,
.
author
=
"My Name <email@helloworld.tld>"
,
.
homepage
=
"http://helloworld.tld"
,
.
load
=
plugin_load
};
static
void
init_plugin
(
PurplePlugin
*
plugin
)
{
}
PURPLE_INIT_PLUGIN
(
hello_world
,
init_plugin
,
info
);