[playlist] some initialization and value getting fixes (and debug stuff)
[libxmms2client-qt.git] / common.h
blob9799ed1a3d1709837d945f90122856c52d39b203
1 //
2 // C++ Interface: common
3 //
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
5 //
6 // Copyright: See COPYING file that comes with this distribution
7 //
9 #ifndef XMMSQT_COMMON_H
10 #define XMMSQT_COMMON_H
11 #include <xmmsclient/xmmsclient.h>
13 namespace XmmsQt {
14 inline void connectNotifierUnref(xmmsc_result_t * result, xmmsc_result_notifier_t callback, void * userdata) {
15 xmmsc_result_notifier_set(result, callback, userdata);
16 xmmsc_result_unref(result);
19 inline void disconnectNotifierUnref(xmmsc_result_t * result) {
20 xmmsc_result_disconnect(result);
21 xmmsc_result_unref(result);
24 #endif