projects
/
platform
/
core
/
uifw
/
tts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add to set false as exit when dbus disconnects
[platform/core/uifw/tts.git]
/
server
/
ttsd_player.h
diff --git
a/server/ttsd_player.h
b/server/ttsd_player.h
index
c77dca8
..
a59214b
100644
(file)
--- a/
server/ttsd_player.h
+++ b/
server/ttsd_player.h
@@
-1,5
+1,5
@@
/*
/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011
-2016
Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@
-23,35
+23,35
@@
typedef enum {
PLAYER_END_OF_PLAYING,
PLAYER_EMPTY_SOUND_QUEUE,
PLAYER_ERROR
PLAYER_END_OF_PLAYING,
PLAYER_EMPTY_SOUND_QUEUE,
PLAYER_ERROR
-}player_event_e;
+}
player_event_e;
-typedef int (*player_result_callback_func)(player_event_e event, int uid, int utt_id);
+typedef enum {
+ TTSD_PLAYER_STATE_NULL,
+ TTSD_PLAYER_STATE_PAUSED,
+ TTSD_PLAYER_STATE_PLAYING
+} ttsd_player_state_e;
/*
* TTSD Player Interfaces
*/
/*
* TTSD Player Interfaces
*/
-int ttsd_player_init(
player_result_callback_func result_cb
);
+int ttsd_player_init();
int ttsd_player_release(void);
int ttsd_player_release(void);
-int ttsd_player_create_instance(const int uid);
-
-int ttsd_player_destroy_instance(const int uid);
-
-int ttsd_player_play(const int uid);
+int ttsd_player_create_instance(int uid);
-int ttsd_player_
next_play
(int uid);
+int ttsd_player_
destroy_instance
(int uid);
-int ttsd_player_
stop(const
int uid);
+int ttsd_player_
play(
int uid);
-int ttsd_player_
pause(const
int uid);
+int ttsd_player_
stop(
int uid);
-int ttsd_player_
resume(const
int uid);
+int ttsd_player_
clear(
int uid);
-int ttsd_player_
get_current_client(
);
+int ttsd_player_
pause(int uid
);
-int ttsd_player_
get_current_utterance_id(const
int uid);
+int ttsd_player_
resume(
int uid);
int ttsd_player_all_stop();
int ttsd_player_all_stop();