File: dbus-stuff.h

package info (click to toggle)
intone 0.77+git20120308-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 540 kB
  • ctags: 329
  • sloc: ansic: 3,849; makefile: 68; sh: 1
file content (37 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * Copyright (C) chaitanya chandel 2009 <cchandel@yahoo.com>
 * 
 * dbus-stuff.h is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * dbus-stuff.h is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <E_DBus.h>
#include <Elementary.h>

#define PLAYING 1
#define PAUSE 0

void occupy_cpu(void);
void release_cpu(void);
void incoming_call_listener(void);
void pause_on_call(void *data, DBusMessage *msg);
void dbus_reply_cb(void *data, DBusMessage *replymsg, DBusError *error);
void bluetooth_on(void);
void bluetooth_off(void);
void set_audio_scenario(char const * const scenario);

E_DBus_Connection *conn;
extern void play_button_clicked(void *data, Evas_Object *obj, void *event_info);
extern int play_state, vol, fd, bass, treble, PHONE;
extern Evas_Object *win;