Skip to content

Commit

Permalink
[gsupplicant] Add methods for adding/removing blobs. Contributes to: …
Browse files Browse the repository at this point in the history
…JB#44692
  • Loading branch information
inzanity committed May 24, 2019
1 parent 5b68bdc commit af78e98
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 15 deletions.
28 changes: 28 additions & 0 deletions include/gsupplicant_interface.h
Expand Up @@ -331,6 +331,23 @@ gsupplicant_interface_reattach(
GSupplicantInterfaceResultFunc fn,
void* data);

GCancellable*
gsupplicant_interface_add_blob(
GSupplicantInterface* self,
GCancellable* cancel,
const char* name,
GBytes* blob,
GSupplicantInterfaceResultFunc fn,
void* data); /* Since 1.0.12 */

GCancellable*
gsupplicant_interface_remove_blob(
GSupplicantInterface* iface,
GCancellable* cancel,
const char* name,
GSupplicantInterfaceResultFunc fn,
void* data); /* Since 1.0.12 */

#define GSUPPLICANT_ADD_NETWORK_DELETE_OTHER (0x01)
#define GSUPPLICANT_ADD_NETWORK_SELECT (0x02)
#define GSUPPLICANT_ADD_NETWORK_ENABLE (0x04)
Expand All @@ -353,6 +370,17 @@ gsupplicant_interface_add_network_full(
GDestroyNotify destroy,
void* data);

GCancellable*
gsupplicant_interface_add_network_full2(
GSupplicantInterface* iface,
GCancellable* cancel,
const GSupplicantNetworkParams* params,
guint flags, /* See above */
GHashTable* blobs, /* char * => gbytes * */
GSupplicantInterfaceStringResultFunc fn,
GDestroyNotify destroy,
void* data); /* Since 1.0.12 */

GCancellable*
gsupplicant_interface_select_network(
GSupplicantInterface* iface,
Expand Down
4 changes: 3 additions & 1 deletion spec/fi.w1.wpa_supplicant1.Interface.xml
Expand Up @@ -31,7 +31,9 @@
</method>
<method name="AddBlob">
<arg name="name" type="s" direction="in"/>
<arg name="data" type="ay" direction="in"/>
<arg name="data" type="ay" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
</arg>
</method>
<method name="GetBlob">
<arg name="name" type="s" direction="in"/>
Expand Down

0 comments on commit af78e98

Please sign in to comment.