diff options
| author | Andre Heinecke <[email protected]> | 2018-06-07 09:42:47 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2018-06-07 09:42:47 +0000 | 
| commit | 906ea48df3e178bea3e2c744ddd834b23fe553fb (patch) | |
| tree | 4b7134a20794c5a1b09f4674c8a8f94f5128b539 /lang/cpp/src/key.h | |
| parent | json: Add op_config to query gpgconf (diff) | |
| download | gpgme-906ea48df3e178bea3e2c744ddd834b23fe553fb.tar.gz gpgme-906ea48df3e178bea3e2c744ddd834b23fe553fb.zip | |
json: Add direct way to query a config option
* src/gpgme-json.c (op_config_opt, hlp_config_opt): New operation.
(process_request, hlp_help): Add it.
--
This is more conveniant API for most query operations where
a single option is required.
An example would be:
{
    "op": "config_opt",
    "component": "gpg",
    "option": "default-key"
}
Which results in:
{
   "option":       {
           "name": "default-key",
           "description":  "use NAME as default secret key",
           "argname":      "NAME",
           "flags":        0,
           "level":        0,
           "type": 1,
           "alt_type":     1,
           "value":        [{
                           "string":       "F462B6B1",
                           "is_none":      false
                   }]
   }
}
Diffstat (limited to 'lang/cpp/src/key.h')
0 files changed, 0 insertions, 0 deletions
