comparison mcabber/modules/beep/beep.c @ 1750:14b4866cc9f2

Update modules to use new api
author Myhailo Danylenko <isbear@ukrpost.net>
date Sat, 13 Mar 2010 10:36:25 +0100
parents 5093b5ca1572
children e4378fbab5d7
comparison
equal deleted inserted replaced
1749:7ee390513463 1750:14b4866cc9f2
23 #include <mcabber/compl.h> 23 #include <mcabber/compl.h>
24 #include <mcabber/hooks.h> 24 #include <mcabber/hooks.h>
25 #include <mcabber/screen.h> 25 #include <mcabber/screen.h>
26 #include <mcabber/settings.h> 26 #include <mcabber/settings.h>
27 #include <mcabber/modules.h> 27 #include <mcabber/modules.h>
28 #include <mcabber/config.h>
28 29
29 static void beep_init (void); 30 static void beep_init (void);
30 static void beep_uninit (void); 31 static void beep_uninit (void);
31 32
32 /* Module description */ 33 /* Module description */
33 module_info_t info_beep = { 34 module_info_t info_beep = {
34 .mcabber_version = "0.10.0", 35 .branch = MCABBER_BRANCH,
35 .requires = NULL, 36 .requires = NULL,
36 .init = beep_init, 37 .init = beep_init,
37 .uninit = beep_uninit, 38 .uninit = beep_uninit,
39 .api = MCABBER_API_VERSION,
40 .version = MCABBER_VERSION,
41 .description = "Simple beeper module\n"
42 "Recognizes option beep_enable\n"
43 "Provides command /beep",
44 .next = NULL,
38 }; 45 };
39 46
40 static guint beep_cid = 0; 47 static guint beep_cid = 0;
41 48
42 /* Event handler */ 49 /* Event handler */