wscutil: move extract_wsc_state
To proper alphabetical order
This commit is contained in:
parent
62e485839f
commit
0f1372f866
|
@ -433,6 +433,15 @@ static bool extract_version(struct wsc_attr_iter *iter, void *data)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool extract_uuid(struct wsc_attr_iter *iter, void *data)
|
||||||
|
{
|
||||||
|
if (wsc_attr_iter_get_length(iter) != 16)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
memcpy(data, wsc_attr_iter_get_data(iter), 16);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
|
static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
|
||||||
{
|
{
|
||||||
uint8_t *out = data;
|
uint8_t *out = data;
|
||||||
|
@ -448,15 +457,6 @@ static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool extract_uuid(struct wsc_attr_iter *iter, void *data)
|
|
||||||
{
|
|
||||||
if (wsc_attr_iter_get_length(iter) != 16)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
memcpy(data, wsc_attr_iter_get_data(iter), 16);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static attr_handler handler_for_type(enum wsc_attr type)
|
static attr_handler handler_for_type(enum wsc_attr type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
Loading…
Reference in New Issue