equal
deleted
inserted
replaced
27 #include <mcabber/roster.h> |
27 #include <mcabber/roster.h> |
28 #include <mcabber/hbuf.h> // HBUF_PREFIX_* |
28 #include <mcabber/hbuf.h> // HBUF_PREFIX_* |
29 #include <mcabber/hooks.h> |
29 #include <mcabber/hooks.h> |
30 #include <mcabber/modules.h> |
30 #include <mcabber/modules.h> |
31 |
31 |
32 #include "tune.h" |
32 #include "pep_tune.h" |
33 |
33 |
34 #include "config.h" |
34 #include "config.h" |
35 |
35 |
36 // |
36 // |
37 // module description |
37 // module description |
38 // |
38 // |
39 |
39 |
40 void tune_init (void); |
40 void tune_init (void); |
41 void tune_uninit (void); |
41 void tune_uninit (void); |
42 |
42 |
43 #define DESCRIPTION ( \ |
43 #define DESCRIPTION ( TUNE_DESCRIPTION ) |
44 "User interface for PEP tune events\n" \ |
|
45 "Prints incoming notifications into buddies buffers\n" \ |
|
46 "Provides command /tune" ) |
|
47 |
44 |
48 static const gchar *deps[] = { "pep_tune", NULL }; |
45 static const gchar *deps[] = { "pep_tune", NULL }; |
49 |
46 |
50 static module_info_t info_tune_dev = { |
47 static module_info_t info_tune_dev = { |
51 .branch = "dev", |
48 .branch = "dev", |
111 |
108 |
112 if (!*arg) { // request |
109 if (!*arg) { // request |
113 |
110 |
114 GError *error = NULL; |
111 GError *error = NULL; |
115 |
112 |
116 tune_request ( CURRENT_JID, &error ); |
113 pep_tune_request ( CURRENT_JID, &error ); |
117 if ( error ) { |
114 if ( error ) { |
118 scr_log_print ( LPRINT_NORMAL, "Error sending request: %s.", error -> message ); |
115 scr_log_print ( LPRINT_NORMAL, "Error sending request: %s.", error -> message ); |
119 g_error_free ( error ); |
116 g_error_free ( error ); |
120 } else |
117 } else |
121 scr_log_print ( LPRINT_NORMAL, "Request sent." ); // XXX |
118 scr_log_print ( LPRINT_NORMAL, "Request sent." ); // XXX |