~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/dbus-player.h

  • Committer: Osmo Antero
  • Date: 2012-09-29 18:12:44 UTC
  • Revision ID: osmoma@gmail.com-20120929181244-gmrxd5xww9pua60a
Support new systems; Ubuntu 12.10, Fedora 18. Improved timer and VAD-modules. Better gst-pipeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <glib.h>
6
6
#include <gdk/gdk.h>
7
7
#include <gio/gio.h>
 
8
#include <utility.h>
8
9
 
9
10
// Uncomment this to show debug messages from dbus-mpris2 and dbus-player modules.
10
11
//#define DEBUG_PLAYER
19
20
 
20
21
#define PLAYER_STATUS_CLOSED -1
21
22
#define PLAYER_STATUS_STOPPED 0
22
 
#define PLAYER_STATUS_PAUSED  1
23
23
#define PLAYER_STATUS_PLAYING 2
24
 
#define PLAYER_STATUS_NOTIFY_MSG 3  // Send notification message to the GUI
25
 
 
26
 
#define RECORDING_DELETE_FILE 4
27
 
 
28
 
#define MPRIS_STRLEN 512
 
24
#define PLAYER_STATUS_PAUSED  3
 
25
#define PLAYER_STATUS_NOTIFY_MSG 7  // Send notification message to the GUI
 
26
 
 
27
//#define RECORDING_DELETE_FILE 4
 
28
 
 
29
#define MPRIS_STRLEN DEF_STR_LEN
29
30
 
30
31
// Function pointers
31
32
typedef void (*GetTrackInfo)(gpointer player_rec); // player_rec = (MediaPlayerRec*)
67
68
void dbus_player_init();
68
69
void dbus_player_exit();
69
70
 
70
 
// Function to be called when media players send a request or data via the DBus.
71
 
typedef void (*DBusDataCallbackFunc)(MediaPlayerRec *player);
72
 
void dbus_player_set_callback_func(DBusDataCallbackFunc data_callback_func);
73
 
 
74
71
GHashTable *dbus_player_get_list_ref();
75
72
 
76
73
GHashTable *dbus_player_get_player_list();
86
83
// Called by media players when they have new data
87
84
void dbus_player_process_data(gpointer player);
88
85
 
89
 
void dbus_player_send_notification(MediaPlayerRec *player, gchar *msg);
 
86
//void dbus_player_send_notification(gchar *msg);
90
87
 
91
88
#endif
92
89