{"action":"created","issue":{"url":"https://api.github.com/repos/pothosware/SoapySDR/issues/37","labels_url":"https://api.github.com/repos/pothosware/SoapySDR/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/pothosware/SoapySDR/issues/37/comments","events_url":"https://api.github.com/repos/pothosware/SoapySDR/issues/37/events","html_url":"https://github.com/pothosware/SoapySDR/issues/37","id":109661491,"number":37,"title":"api to query arguments, formats","user":{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-04T03:53:44Z","updated_at":"2015-10-05T23:15:28Z","closed_at":null,"body":"It'd be nice from a GUI perspective (especially for unknown modules) if the device args, formats, frequency names and stream args could be queried.  I'm currently considering creating an xml document to ship with the application to try and hold the parameter information for known modules; but it'd be a lot nicer to just be able to query those things at runtime.\r\n\r\nAvailable Kwargs could be returned by a key=param, value=parameter type (strings, args, ranges) for anything that accepts args.  \r\n\r\nFunctions could be added to query an argument by name per type (strings, args or a ranges).  \r\n\r\nWould be useful to be able to query the defaults as well.\r\n\r\nFor GUI configuration this makes it simpler to build input fields to match the device properties without having to populate the form properties from another resource.\r\n "},"comment":{"url":"https://api.github.com/repos/pothosware/SoapySDR/issues/comments/145695722","html_url":"https://github.com/pothosware/SoapySDR/issues/37#issuecomment-145695722","issue_url":"https://api.github.com/repos/pothosware/SoapySDR/issues/37","id":145695722,"user":{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T23:15:28Z","updated_at":"2015-10-05T23:15:28Z","body":"Looks good to me; I think I can work with that -- the only thing I might add for consideration is a simple way to provide a different set of defaults when accessed through SoapyRemote -- such as providing the remote scalar or format defaults for the device."}}