Replace functions which called once with their bodies
[pidgin-git.git] / finch / gntidle.c
blob5645a0572db026d80d8fe79c3442dbe21b654245
1 /*
2 * finch
4 * Finch is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 #include <internal.h>
25 #include "finch.h"
26 #include "gntidle.h"
27 #include "gnt.h"
28 #include "gntwm.h"
30 #include "idle.h"
32 static time_t
33 finch_get_idle_time(void)
35 return gnt_wm_get_idle_time();
38 static PurpleIdleUiOps ui_ops =
40 finch_get_idle_time,
42 /* padding */
43 NULL,
44 NULL,
45 NULL,
46 NULL
49 PurpleIdleUiOps *
50 finch_idle_get_ui_ops()
52 return &ui_ops;