grim/purple-spasm
Clone
Summary
Browse
Changes
Graph
Ignore tweak
2017-08-07, Gary Kramlich
5840931371c0
Ignore tweak
/*
* HelloWorld - A hello world libpurple plugin
* Copyright (C) 2006 John Bailey <rekkanoryo@rekkanoryo.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#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
);