@@ -51,7 +51,7 @@ namespace {
51
51
52
52
struct SetActiveDatasetContext
53
53
{
54
- OpenthreadIoOpenthreadBorderRouter * proxy;
54
+ OpenthreadBorderRouter * proxy;
55
55
ByteSpan netInfo;
56
56
};
57
57
@@ -67,7 +67,7 @@ CHIP_ERROR GLibMatterContextSetActiveDataset(SetActiveDatasetContext * context)
67
67
GAutoPtr<GVariant> value (g_variant_new_from_bytes (G_VARIANT_TYPE_BYTESTRING, bytes.release (), true ));
68
68
if (!value)
69
69
return CHIP_ERROR_NO_MEMORY;
70
- openthread_io_openthread_border_router_set_active_dataset_tlvs (context->proxy , value.release ());
70
+ openthread_border_router_set_active_dataset_tlvs (context->proxy , value.release ());
71
71
return CHIP_NO_ERROR;
72
72
}
73
73
@@ -82,9 +82,9 @@ CHIP_ERROR ThreadStackManagerImpl::GLibMatterContextInitThreadStack(ThreadStackM
82
82
VerifyOrDie (g_main_context_get_thread_default () != nullptr );
83
83
84
84
GAutoPtr<GError> err;
85
- self->mProxy .reset (openthread_io_openthread_border_router_proxy_new_for_bus_sync (
86
- G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, kDBusOpenThreadService , kDBusOpenThreadObjectPath , nullptr ,
87
- &err.GetReceiver ()));
85
+ self->mProxy .reset (openthread_border_router_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE,
86
+ kDBusOpenThreadService , kDBusOpenThreadObjectPath , nullptr ,
87
+ &err.GetReceiver ()));
88
88
VerifyOrReturnError (
89
89
self->mProxy != nullptr , CHIP_ERROR_INTERNAL,
90
90
ChipLogError (DeviceLayer, " openthread: failed to create openthread dbus proxy %s" , err ? err->message : " unknown error" ));
@@ -103,7 +103,7 @@ CHIP_ERROR ThreadStackManagerImpl::_InitThreadStack()
103
103
104
104
// If get property is called inside dbus thread (we are going to make it so), XXX_get_XXX can be used instead of XXX_dup_XXX
105
105
// which is a little bit faster and the returned object doesn't need to be freed. Same for all following get properties.
106
- GAutoPtr<char > role (openthread_io_openthread_border_router_dup_device_role (mProxy .get ()));
106
+ GAutoPtr<char > role (openthread_border_router_dup_device_role (mProxy .get ()));
107
107
if (role)
108
108
{
109
109
ThreadDeviceRoleChangedHandler (role.get ());
@@ -112,7 +112,7 @@ CHIP_ERROR ThreadStackManagerImpl::_InitThreadStack()
112
112
return CHIP_NO_ERROR;
113
113
}
114
114
115
- void ThreadStackManagerImpl::OnDbusPropertiesChanged (OpenthreadIoOpenthreadBorderRouter * proxy, GVariant * changed_properties,
115
+ void ThreadStackManagerImpl::OnDbusPropertiesChanged (OpenthreadBorderRouter * proxy, GVariant * changed_properties,
116
116
const gchar * const * invalidated_properties, gpointer user_data)
117
117
{
118
118
ThreadStackManagerImpl * me = reinterpret_cast <ThreadStackManagerImpl *>(user_data);
@@ -182,7 +182,7 @@ bool ThreadStackManagerImpl::_HaveRouteToAddress(const Inet::IPAddress & destAdd
182
182
return true ;
183
183
}
184
184
185
- GAutoPtr<GVariant> routes (openthread_io_openthread_border_router_dup_external_routes (mProxy .get ()));
185
+ GAutoPtr<GVariant> routes (openthread_border_router_dup_external_routes (mProxy .get ()));
186
186
if (!routes)
187
187
return false ;
188
188
@@ -368,7 +368,7 @@ bool ThreadStackManagerImpl::_IsThreadAttached() const
368
368
CHIP_ERROR ThreadStackManagerImpl::GLibMatterContextCallAttach (ThreadStackManagerImpl * self)
369
369
{
370
370
VerifyOrDie (g_main_context_get_thread_default () != nullptr );
371
- openthread_io_openthread_border_router_call_attach (self->mProxy .get (), nullptr , _OnThreadBrAttachFinished, self);
371
+ openthread_border_router_call_attach (self->mProxy .get (), nullptr , _OnThreadBrAttachFinished, self);
372
372
return CHIP_NO_ERROR;
373
373
}
374
374
@@ -383,7 +383,7 @@ CHIP_ERROR ThreadStackManagerImpl::_SetThreadEnabled(bool val)
383
383
else
384
384
{
385
385
GAutoPtr<GError> err;
386
- gboolean result = openthread_io_openthread_border_router_call_reset_sync (mProxy .get (), nullptr , &err.GetReceiver ());
386
+ gboolean result = openthread_border_router_call_reset_sync (mProxy .get (), nullptr , &err.GetReceiver ());
387
387
if (err)
388
388
{
389
389
ChipLogError (DeviceLayer, " openthread: _SetThreadEnabled calling %s failed: %s" , " Reset" , err->message );
@@ -405,7 +405,7 @@ void ThreadStackManagerImpl::_OnThreadBrAttachFinished(GObject * source_object,
405
405
GAutoPtr<GVariant> attachRes;
406
406
GAutoPtr<GError> err;
407
407
{
408
- gboolean result = openthread_io_openthread_border_router_call_attach_finish (this_->mProxy .get (), res, &err.GetReceiver ());
408
+ gboolean result = openthread_border_router_call_attach_finish (this_->mProxy .get (), res, &err.GetReceiver ());
409
409
if (!result)
410
410
{
411
411
ChipLogError (DeviceLayer, " Failed to perform finish Thread network scan: %s" ,
@@ -442,7 +442,7 @@ ConnectivityManager::ThreadDeviceType ThreadStackManagerImpl::_GetThreadDeviceTy
442
442
return ConnectivityManager::ThreadDeviceType::kThreadDeviceType_NotSupported ;
443
443
}
444
444
445
- GAutoPtr<char > role (openthread_io_openthread_border_router_dup_device_role (mProxy .get ()));
445
+ GAutoPtr<char > role (openthread_border_router_dup_device_role (mProxy .get ()));
446
446
if (!role)
447
447
return ConnectivityManager::ThreadDeviceType::kThreadDeviceType_NotSupported ;
448
448
if (strcmp (role.get (), kOpenthreadDeviceRoleDetached ) == 0 || strcmp (role.get (), kOpenthreadDeviceRoleDisabled ) == 0 )
@@ -451,7 +451,7 @@ ConnectivityManager::ThreadDeviceType ThreadStackManagerImpl::_GetThreadDeviceTy
451
451
}
452
452
if (strcmp (role.get (), kOpenthreadDeviceRoleChild ) == 0 )
453
453
{
454
- GAutoPtr<GVariant> linkMode (openthread_io_openthread_border_router_dup_link_mode (mProxy .get ()));
454
+ GAutoPtr<GVariant> linkMode (openthread_border_router_dup_link_mode (mProxy .get ()));
455
455
if (!linkMode)
456
456
return ConnectivityManager::ThreadDeviceType::kThreadDeviceType_NotSupported ;
457
457
gboolean rx_on_when_idle;
@@ -499,7 +499,7 @@ CHIP_ERROR ThreadStackManagerImpl::_SetThreadDeviceType(ConnectivityManager::Thr
499
499
GAutoPtr<GVariant> linkMode (g_variant_new (" (bbb)" , rx_on_when_idle, device_type, network_data));
500
500
if (!linkMode)
501
501
return CHIP_ERROR_NO_MEMORY;
502
- openthread_io_openthread_border_router_set_link_mode (mProxy .get (), linkMode.release ());
502
+ openthread_border_router_set_link_mode (mProxy .get (), linkMode.release ());
503
503
}
504
504
505
505
return CHIP_NO_ERROR;
@@ -546,7 +546,7 @@ CHIP_ERROR ThreadStackManagerImpl::_GetAndLogThreadTopologyFull()
546
546
CHIP_ERROR ThreadStackManagerImpl::_GetPrimary802154MACAddress (uint8_t * buf)
547
547
{
548
548
VerifyOrReturnError (mProxy , CHIP_ERROR_INCORRECT_STATE);
549
- guint64 extAddr = openthread_io_openthread_border_router_get_extended_address (mProxy .get ());
549
+ guint64 extAddr = openthread_border_router_get_extended_address (mProxy .get ());
550
550
551
551
for (size_t i = 0 ; i < sizeof (extAddr); i++)
552
552
{
@@ -579,7 +579,7 @@ CHIP_ERROR ThreadStackManagerImpl::_GetPollPeriod(uint32_t & buf)
579
579
CHIP_ERROR ThreadStackManagerImpl::GLibMatterContextCallScan (ThreadStackManagerImpl * self)
580
580
{
581
581
VerifyOrDie (g_main_context_get_thread_default () != nullptr );
582
- openthread_io_openthread_border_router_call_scan (self->mProxy .get (), nullptr , _OnNetworkScanFinished, self);
582
+ openthread_border_router_call_scan (self->mProxy .get (), nullptr , _OnNetworkScanFinished, self);
583
583
return CHIP_NO_ERROR;
584
584
}
585
585
@@ -604,8 +604,8 @@ void ThreadStackManagerImpl::_OnNetworkScanFinished(GAsyncResult * res)
604
604
GAutoPtr<GVariant> scan_result;
605
605
GAutoPtr<GError> err;
606
606
{
607
- gboolean result = openthread_io_openthread_border_router_call_scan_finish ( mProxy . get (), &scan_result. GetReceiver (), res,
608
- &err.GetReceiver ());
607
+ gboolean result =
608
+ openthread_border_router_call_scan_finish ( mProxy . get (), &scan_result. GetReceiver (), res, &err.GetReceiver ());
609
609
if (!result)
610
610
{
611
611
ChipLogError (DeviceLayer, " Failed to perform finish Thread network scan: %s" ,
0 commit comments