~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/rec-manager-struct.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:
 
1
#ifndef _REC_MANAGER_STRUCT_H_
 
2
#define _REC_MANAGER_STRUCT_H_
 
3
 
 
4
#include <glib.h>
 
5
#include <gdk/gdk.h>
 
6
 
 
7
// Types of messages in the queue
 
8
enum CommandType {RECORDING_STOP = 0,
 
9
                  RECORDING_START = 2,
 
10
                  RECORDING_PAUSE = 3,
 
11
                  RECORDING_CONTINUE = 4,
 
12
                  RECORDING_NOTIFY_MSG = 7,
 
13
                  RECORDING_SHOW_WINDOW,
 
14
                  RECORDING_HIDE_WINDOW,
 
15
                  RECORDING_QUIT_LOOP,
 
16
                  RECORDING_QUIT_APP
 
17
                 };
 
18
 
 
19
// Flags
 
20
enum CommandFlags {RECORDING_NO_FLAGS = 0, RECORDING_DELETE_FILE = 4};
 
21
 
 
22
typedef struct {
 
23
    enum CommandType type;
 
24
    gchar *track;
 
25
    gchar *artist;
 
26
    gchar *album;
 
27
    gint track_pos; // in seconds
 
28
    gint track_len; // in seconds
 
29
    enum CommandFlags flags;
 
30
} RecorderCommand;
 
31
 
 
32
// Send message to the queue
 
33
void rec_manager_send_command(RecorderCommand *cmd);
 
34
 
 
35
#endif
 
36