diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-24 00:05:40 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-24 09:45:17 +0200 |
commit | 94fb16c9120249a09855528935d57129fefb2423 (patch) | |
tree | ae688c693c3e8a608d6603820195b25dea53fe07 /data | |
parent | d7c2d2cc79e3f6cca2b4d7c96042fa14f1b505c5 (diff) | |
download | libmbim-94fb16c9120249a09855528935d57129fefb2423.tar.gz |
phonebook: add support for the Phonebook service
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 3 | ||||
-rw-r--r-- | data/mbim-service-phonebook.json | 89 |
2 files changed, 91 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 3322716..863f007 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -4,4 +4,5 @@ EXTRA_DIST = \ mbim-service-basic-connect.json \ mbim-service-sms.json \ mbim-service-ussd.json \ - mbim-service-auth.json + mbim-service-auth.json \ + mbim-service-phonebook.json diff --git a/data/mbim-service-phonebook.json b/data/mbim-service-phonebook.json new file mode 100644 index 0000000..dffa598 --- /dev/null +++ b/data/mbim-service-phonebook.json @@ -0,0 +1,89 @@ + +[ + // ********************************************************************************* + { "type" : "Service", + "name" : "Phonebook" }, + + // ********************************************************************************* + { "name" : "Configuration", + "service" : "Phonebook", + "type" : "Command", + "query" : [], + "response" : [ { "name" : "State", + "format" : "guint32", + "public-format" : "MbimPhonebookState" }, + { "name" : "NumberOfEntries", + "format" : "guint32" }, + { "name" : "UsedEntries", + "format" : "guint32" }, + { "name" : "MaxNumberLength", + "format" : "guint32" }, + { "name" : "MaxName", + "format" : "guint32" } ], + "notification" : [ { "name" : "State", + "format" : "guint32", + "public-format" : "MbimPhonebookState" }, + { "name" : "NumberOfEntries", + "format" : "guint32" }, + { "name" : "UsedEntries", + "format" : "guint32" }, + { "name" : "MaxNumberLength", + "format" : "guint32" }, + { "name" : "MaxName", + "format" : "guint32" } ] }, + + // ********************************************************************************* + { "name" : "MbimPhonebookEntry", + "type" : "Struct", + "contents" : [ { "name" : "EntryIndex", + "format" : "guint32" }, + { "name" : "Number", + "format" : "string" }, + { "name" : "Name", + "format" : "string" } ] }, + + { "name" : "Read", + "service" : "Phonebook", + "type" : "Command", + "query" : [ { "name" : "FilterFlag", + "format" : "guint32", + "public-format" : "MbimPhonebookFlag" }, + { "name" : "FilterMessageIndex", + "format" : "guint32" } ], + "response" : [ { "name" : "EntryCount", + "format" : "guint32" }, + { "name" : "Entries", + "format" : "ref-struct-array", + "struct-type" : "MbimPhonebookEntry", + "array-size-field" : "EntryCount" } ] }, + + // ********************************************************************************* + + { "name" : "Delete", + "service" : "Phonebook", + "type" : "Command", + "set" : [ { "name" : "FilterFlag", + "format" : "guint32", + "public-format" : "MbimPhonebookFlag" }, + { "name" : "FilterMessageIndex", + "format" : "guint32" } ], + "response" : [] }, + + + // ********************************************************************************* + + { "name" : "Write", + "service" : "Phonebook", + "type" : "Command", + "set" : [ { "name" : "SaveFlag", + "format" : "guint32", + "public-format" : "MbimPhonebookWriteFlag" }, + { "name" : "SaveIndex", + "format" : "guint32" }, + { "name" : "Number", + "format" : "string" }, + { "name" : "Name", + "format" : "string" } ], + "response" : [] } + +] |