summaryrefslogtreecommitdiff
path: root/data/mbim-service-phonebook.json
blob: dffa59853d45fc6eae7c6cef8bd56b4f311e908a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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" : [] }

]