Skip to content

Commit

Permalink
jsonrpc: rename (Video|Audio)Library.ScanForContent to (Video|Audio)L…
Browse files Browse the repository at this point in the history
…ibrary.Scan
  • Loading branch information
Montellese committed Jun 22, 2011
1 parent 570da53 commit d8e43a2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion xbmc/interfaces/json-rpc/AudioLibrary.cpp
Expand Up @@ -240,7 +240,7 @@ JSON_STATUS CAudioLibrary::GetGenres(const CStdString &method, ITransportLayer *
return OK;
}

JSON_STATUS CAudioLibrary::ScanForContent(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
JSON_STATUS CAudioLibrary::Scan(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
{
g_application.getApplicationMessenger().ExecBuiltIn("updatelibrary(music)");
return ACK;
Expand Down
3 changes: 2 additions & 1 deletion xbmc/interfaces/json-rpc/AudioLibrary.h
Expand Up @@ -38,7 +38,8 @@ namespace JSONRPC
static JSON_STATUS GetRecentlyAddedAlbums(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS GetRecentlyAddedSongs(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS GetGenres(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS ScanForContent(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);

static JSON_STATUS Scan(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS Export(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);

static bool FillFileItem(const CStdString &strFilename, CFileItem &item);
Expand Down
4 changes: 2 additions & 2 deletions xbmc/interfaces/json-rpc/JSONServiceDescription.cpp
Expand Up @@ -197,7 +197,7 @@ JsonRpcMethodMap CJSONServiceDescription::m_methodMaps[] = {
{ "AudioLibrary.GetRecentlyAddedAlbums", CAudioLibrary::GetRecentlyAddedAlbums },
{ "AudioLibrary.GetRecentlyAddedSongs", CAudioLibrary::GetRecentlyAddedSongs },
{ "AudioLibrary.GetGenres", CAudioLibrary::GetGenres },
{ "AudioLibrary.ScanForContent", CAudioLibrary::ScanForContent },
{ "AudioLibrary.Scan", CAudioLibrary::Scan },
{ "AudioLibrary.Export", CAudioLibrary::Export },

// Video Library
Expand All @@ -216,7 +216,7 @@ JsonRpcMethodMap CJSONServiceDescription::m_methodMaps[] = {
{ "VideoLibrary.GetRecentlyAddedMovies", CVideoLibrary::GetRecentlyAddedMovies },
{ "VideoLibrary.GetRecentlyAddedEpisodes", CVideoLibrary::GetRecentlyAddedEpisodes },
{ "VideoLibrary.GetRecentlyAddedMusicVideos", CVideoLibrary::GetRecentlyAddedMusicVideos },
{ "VideoLibrary.ScanForContent", CVideoLibrary::ScanForContent },
{ "VideoLibrary.Scan", CVideoLibrary::Scan },
{ "VideoLibrary.Export", CVideoLibrary::Export },

// System operations
Expand Down
4 changes: 2 additions & 2 deletions xbmc/interfaces/json-rpc/ServiceDescription.h
Expand Up @@ -1733,7 +1733,7 @@ namespace JSONRPC
"}"
"}"
"}",
"\"AudioLibrary.ScanForContent\": {"
"\"AudioLibrary.Scan\": {"
"\"type\": \"method\","
"\"description\": \"Scans the audio sources for new library items\","
"\"transport\": \"Response\","
Expand Down Expand Up @@ -2034,7 +2034,7 @@ namespace JSONRPC
"}"
"}"
"}",
"\"VideoLibrary.ScanForContent\": {"
"\"VideoLibrary.Scan\": {"
"\"type\": \"method\","
"\"description\": \"Scans the video sources for new library items\","
"\"transport\": \"Response\","
Expand Down
2 changes: 1 addition & 1 deletion xbmc/interfaces/json-rpc/VideoLibrary.cpp
Expand Up @@ -385,7 +385,7 @@ JSON_STATUS CVideoLibrary::GetGenres(const CStdString &method, ITransportLayer *
return OK;
}

JSON_STATUS CVideoLibrary::ScanForContent(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
JSON_STATUS CVideoLibrary::Scan(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
{
g_application.getApplicationMessenger().ExecBuiltIn("updatelibrary(video)");
return ACK;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/interfaces/json-rpc/VideoLibrary.h
Expand Up @@ -49,7 +49,7 @@ namespace JSONRPC

static JSON_STATUS GetGenres(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);

static JSON_STATUS ScanForContent(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS Scan(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSON_STATUS Export(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);

static bool FillFileItem(const CStdString &strFilename, CFileItem &item);
Expand Down
4 changes: 2 additions & 2 deletions xbmc/interfaces/json-rpc/methods.json
Expand Up @@ -976,7 +976,7 @@
}
}
},
"AudioLibrary.ScanForContent": {
"AudioLibrary.Scan": {
"type": "method",
"description": "Scans the audio sources for new library items",
"transport": "Response",
Expand Down Expand Up @@ -1277,7 +1277,7 @@
}
}
},
"VideoLibrary.ScanForContent": {
"VideoLibrary.Scan": {
"type": "method",
"description": "Scans the video sources for new library items",
"transport": "Response",
Expand Down

0 comments on commit d8e43a2

Please sign in to comment.