grim/guifications3
Clone
Summary
Browse
Changes
Graph
fix a documentation goof up
2009-12-27, Gary Kramlich
9a882cfb0ec1
fix a documentation goof up
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#include
"guifications-daemon-web-handlers.h"
/******************************************************************************
* Structs
*****************************************************************************/
typedef
struct
{
const
gchar
*
path
;
SoupServerCallback
handler
;
}
GfdWebUrlHandlerData
;
/******************************************************************************
* Globals
*****************************************************************************/
static
GfdWebUrlHandlerData
uhd
[]
=
{
{
"/debug"
,
gfd_web_handler_debug
},
{
"/feeds"
,
gfd_web_handler_feeds
},
{
NULL
,
NULL
},
};
/******************************************************************************
* API
*****************************************************************************/
void
gfd_web_handlers_add_default
(
GfClientConnection
*
connection
,
SoupServer
*
server
)
{
gint
i
;
for
(
i
=
0
;
uhd
[
i
].
path
;
i
++
)
{
soup_server_add_handler
(
server
,
uhd
[
i
].
path
,
uhd
[
i
].
handler
,
g_object_ref
(
connection
),
g_object_unref
);
}
}