libeplayer3: rename Content_t => Player

This commit is contained in:
martii
2014-04-06 12:11:40 +02:00
parent 70f58d2cf5
commit dd527fdfba
16 changed files with 99 additions and 102 deletions

View File

@@ -75,7 +75,7 @@ static int CurrentPid = -1;
/* Functions */
/* ***************************** */
static int ManagerAdd(Context_t * context, Track_t track)
static int ManagerAdd(Player * context, Track_t track)
{
Tracks[track.Id] = track;
context->playback->isAudio = 1;
@@ -86,7 +86,7 @@ static int ManagerAdd(Context_t * context, Track_t track)
return cERR_AUDIO_MGR_NO_ERROR;
}
static char **ManagerList(Context_t * context __attribute__ ((unused)))
static char **ManagerList(Player * context __attribute__ ((unused)))
{
int j = 0;
char **tracklist = (char **) malloc(sizeof(char *) * ((Tracks.size() * 2) + 1));
@@ -106,7 +106,7 @@ static char **ManagerList(Context_t * context __attribute__ ((unused)))
return tracklist;
}
static int ManagerDel(Context_t * context)
static int ManagerDel(Player * context)
{
Tracks.clear();
CurrentPid = -1;
@@ -115,7 +115,7 @@ static int ManagerDel(Context_t * context)
}
static int Command(Context_t *context, ManagerCmd_t command, void *argument)
static int Command(Player *context, ManagerCmd_t command, void *argument)
{
int ret = cERR_AUDIO_MGR_NO_ERROR;

View File

@@ -74,14 +74,14 @@ static std::map<int,Track_t> Tracks;
/* Functions */
/* ***************************** */
static int ManagerAdd(Context_t * context __attribute__((unused)), Track_t track)
static int ManagerAdd(Player * context __attribute__((unused)), Track_t track)
{
Tracks[track.Id] = track;
return cERR_CHAPTER_MGR_NO_ERROR;
}
static char **ManagerList(Context_t * context __attribute__ ((unused)))
static char **ManagerList(Player * context __attribute__ ((unused)))
{
int j = 0;
char **tracklist = (char **) malloc(sizeof(char *) * ((Tracks.size() * 2) + 1));
@@ -100,13 +100,13 @@ static char **ManagerList(Context_t * context __attribute__ ((unused)))
return tracklist;
}
static int ManagerDel(Context_t * context __attribute__((unused)))
static int ManagerDel(Player * context __attribute__((unused)))
{
Tracks.clear();
return cERR_CHAPTER_MGR_NO_ERROR;
}
static int Command(Context_t *context, ManagerCmd_t command, void *argument)
static int Command(Player *context, ManagerCmd_t command, void *argument)
{
int ret = cERR_CHAPTER_MGR_NO_ERROR;

View File

@@ -75,7 +75,7 @@ static int CurrentPid = -1;
/* Functions */
/* ***************************** */
static int ManagerAdd(Context_t * context __attribute__((unused)), Track_t track)
static int ManagerAdd(Player * context __attribute__((unused)), Track_t track)
{
Tracks[track.Id] = track;
context->playback->isAudio = 1;
@@ -83,7 +83,7 @@ static int ManagerAdd(Context_t * context __attribute__((unused)), Track_t track
return cERR_SUBTITLE_MGR_NO_ERROR;
}
static char **ManagerList(Context_t * context __attribute__ ((unused)))
static char **ManagerList(Player * context __attribute__ ((unused)))
{
int j = 0;
char **tracklist = (char **) malloc(sizeof(char *) * ((Tracks.size() * 2) + 1));
@@ -102,14 +102,14 @@ static char **ManagerList(Context_t * context __attribute__ ((unused)))
return tracklist;
}
static int ManagerDel(Context_t * context __attribute__((unused)))
static int ManagerDel(Player * context __attribute__((unused)))
{
Tracks.clear();
CurrentPid = -1;
return cERR_SUBTITLE_MGR_NO_ERROR;
}
static int Command(Context_t *context, ManagerCmd_t command, void *argument)
static int Command(Player *context, ManagerCmd_t command, void *argument)
{
int ret = cERR_SUBTITLE_MGR_NO_ERROR;

View File

@@ -75,7 +75,7 @@ static int CurrentPid = -1;
/* Functions */
/* ***************************** */
static int ManagerAdd(Context_t * context __attribute__((unused)), Track_t track)
static int ManagerAdd(Player * context __attribute__((unused)), Track_t track)
{
Tracks[track.Id] = track;
context->playback->isAudio = 1;
@@ -83,7 +83,7 @@ static int ManagerAdd(Context_t * context __attribute__((unused)), Track_t track
return cERR_TELETEXT_MGR_NO_ERROR;
}
static char **ManagerList(Context_t * context __attribute__ ((unused)))
static char **ManagerList(Player * context __attribute__ ((unused)))
{
int j = 0;
char **tracklist = (char **) malloc(sizeof(char *) * ((Tracks.size() * 2) + 1));
@@ -102,7 +102,7 @@ static char **ManagerList(Context_t * context __attribute__ ((unused)))
return tracklist;
}
static int ManagerDel(Context_t * context __attribute__((unused)))
static int ManagerDel(Player * context __attribute__((unused)))
{
Tracks.clear();
CurrentPid = -1;
@@ -110,7 +110,7 @@ static int ManagerDel(Context_t * context __attribute__((unused)))
}
static int Command(Context_t *context, ManagerCmd_t command, void *argument)
static int Command(Player *context, ManagerCmd_t command, void *argument)
{
int ret = cERR_TELETEXT_MGR_NO_ERROR;

View File

@@ -75,7 +75,7 @@ static int CurrentPid = -1;
/* Functions */
/* ***************************** */
static int ManagerAdd(Context_t * context, Track_t track)
static int ManagerAdd(Player * context, Track_t track)
{
Tracks[track.Id] = track;
context->playback->isVideo = 1;
@@ -86,7 +86,7 @@ static int ManagerAdd(Context_t * context, Track_t track)
return cERR_VIDEO_MGR_NO_ERROR;
}
static char **ManagerList(Context_t * context __attribute__ ((unused)))
static char **ManagerList(Player * context __attribute__ ((unused)))
{
int j = 0;
char **tracklist = (char **) malloc(sizeof(char *) * ((Tracks.size() * 2) + 1));
@@ -105,7 +105,7 @@ static char **ManagerList(Context_t * context __attribute__ ((unused)))
return tracklist;
}
static int ManagerDel(Context_t * context)
static int ManagerDel(Player * context)
{
Tracks.clear();
CurrentPid = -1;
@@ -113,7 +113,7 @@ static int ManagerDel(Context_t * context)
return cERR_VIDEO_MGR_NO_ERROR;
}
static int Command(Context_t *context, ManagerCmd_t command, void *argument)
static int Command(Player *context, ManagerCmd_t command, void *argument)
{
int ret = cERR_VIDEO_MGR_NO_ERROR;