Sound Manager
soundmanager.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <json-c/json.h>
#include <glib.h>
#include <pthread.h>
#include <afb/afb-binding.h>
#include "sm-error.h"
#include "sm-helper.h"
#include "dbus/audio_manager_interface.h"

Go to the source code of this file.

Data Structures

struct  event
 

Macros

#define _GNU_SOURCE
 
#define AFB_BINDING_VERSION   2
 
#define AM_NAME   "org.genivi.audiomanager"
 
#define AM_CMD_PATH   "/org/genivi/audiomanager/commandinterface"
 
#define AM_ROUTE_PATH   "/org/genivi/audiomanager/routinginterface"
 
#define AM_ROUTE_NAME   "org.genivi.audiomanager.routinginterface"
 
#define SOUND_MANAGER_RETURN_INTERFACE   "org.genivi.audiomanager.routing.soundmanager"
 
#define SOUND_MANAGER_BUS_NAME   "org.genivi.audiomanager.routing.soundmanager"
 
#define SOUND_MANAGER_PATH   "/org/genivi/audiomanager/routing/soundmanager"
 
#define COMMAND_EVENT_NUM   10
 
#define ROUTING_EVENT_NUM   10
 
#define DEFAULT_SINK   1
 
#define DEFAULT_SOURCE_CLASS_ID   100
 
#define DYNAMIC_DOMAIN_ID   100
 
#define DEFAULT_DOMAIN_ID   0
 
#define DYNAMIC_SOURCE_ID   0
 
#define DEFAULT_VOLUME   100
 
#define DEFAULT_AVAILABLES   1
 
#define DEFAULT_CONNECTION_FORMAT   2
 
#define DEFAULT_INTERRUPT   0
 
#define DEFAULT_SOURCE_STATE   2
 
#define DS_CONTROLLED   1
 
#define EVENT_SUBSCRIBE_ERROR_CODE   100
 

Variables

const struct afb_binding_v2 afbBindingV2
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 17 of file soundmanager.c.

◆ AFB_BINDING_VERSION

#define AFB_BINDING_VERSION   2

Definition at line 18 of file soundmanager.c.

◆ AM_CMD_PATH

#define AM_CMD_PATH   "/org/genivi/audiomanager/commandinterface"

Definition at line 33 of file soundmanager.c.

◆ AM_NAME

#define AM_NAME   "org.genivi.audiomanager"

Definition at line 32 of file soundmanager.c.

◆ AM_ROUTE_NAME

#define AM_ROUTE_NAME   "org.genivi.audiomanager.routinginterface"

Definition at line 35 of file soundmanager.c.

◆ AM_ROUTE_PATH

#define AM_ROUTE_PATH   "/org/genivi/audiomanager/routinginterface"

Definition at line 34 of file soundmanager.c.

◆ COMMAND_EVENT_NUM

#define COMMAND_EVENT_NUM   10

Definition at line 40 of file soundmanager.c.

◆ DEFAULT_AVAILABLES

#define DEFAULT_AVAILABLES   1

Definition at line 48 of file soundmanager.c.

◆ DEFAULT_CONNECTION_FORMAT

#define DEFAULT_CONNECTION_FORMAT   2

Definition at line 49 of file soundmanager.c.

◆ DEFAULT_DOMAIN_ID

#define DEFAULT_DOMAIN_ID   0

Definition at line 45 of file soundmanager.c.

◆ DEFAULT_INTERRUPT

#define DEFAULT_INTERRUPT   0

Definition at line 50 of file soundmanager.c.

◆ DEFAULT_SINK

#define DEFAULT_SINK   1

Definition at line 42 of file soundmanager.c.

◆ DEFAULT_SOURCE_CLASS_ID

#define DEFAULT_SOURCE_CLASS_ID   100

Definition at line 43 of file soundmanager.c.

◆ DEFAULT_SOURCE_STATE

#define DEFAULT_SOURCE_STATE   2

Definition at line 51 of file soundmanager.c.

◆ DEFAULT_VOLUME

#define DEFAULT_VOLUME   100

Definition at line 47 of file soundmanager.c.

◆ DS_CONTROLLED

#define DS_CONTROLLED   1

Definition at line 52 of file soundmanager.c.

◆ DYNAMIC_DOMAIN_ID

#define DYNAMIC_DOMAIN_ID   100

Definition at line 44 of file soundmanager.c.

◆ DYNAMIC_SOURCE_ID

#define DYNAMIC_SOURCE_ID   0

Definition at line 46 of file soundmanager.c.

◆ EVENT_SUBSCRIBE_ERROR_CODE

#define EVENT_SUBSCRIBE_ERROR_CODE   100

Definition at line 54 of file soundmanager.c.

◆ ROUTING_EVENT_NUM

#define ROUTING_EVENT_NUM   10

Definition at line 41 of file soundmanager.c.

◆ SOUND_MANAGER_BUS_NAME

#define SOUND_MANAGER_BUS_NAME   "org.genivi.audiomanager.routing.soundmanager"

Definition at line 37 of file soundmanager.c.

◆ SOUND_MANAGER_PATH

#define SOUND_MANAGER_PATH   "/org/genivi/audiomanager/routing/soundmanager"

Definition at line 38 of file soundmanager.c.

◆ SOUND_MANAGER_RETURN_INTERFACE

#define SOUND_MANAGER_RETURN_INTERFACE   "org.genivi.audiomanager.routing.soundmanager"

Definition at line 36 of file soundmanager.c.

Variable Documentation

◆ afbBindingV2

const struct afb_binding_v2 afbBindingV2
Initial value:
= {
.api = "soundmanager",
.specification = NULL,
.verbs = binding_verbs,
.preinit = preinit,
.init = sm_event_init,
.onevent = onevent
}

Definition at line 1567 of file soundmanager.c.