Modules: export module info

This commit is contained in:
李通洲
2025-08-03 22:50:56 +08:00
parent 6f8d276545
commit 559082806b
146 changed files with 295 additions and 147 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ void ffGenerateBluetoothJsonResult(FFBluetoothOptions* options, yyjson_mut_doc*
}
}
static FFModuleBaseInfo ffModuleInfo = {
FFModuleBaseInfo ffBluetoothModuleInfo = {
.name = FF_BLUETOOTH_MODULE_NAME,
.description = "List (connected) bluetooth devices",
.initOptions = (void*) ffInitBluetoothOptions,
@@ -184,7 +184,7 @@ static FFModuleBaseInfo ffModuleInfo = {
void ffInitBluetoothOptions(FFBluetoothOptions* options)
{
options->moduleInfo = ffModuleInfo;
options->moduleInfo = ffBluetoothModuleInfo;
ffOptionInitModuleArg(&options->moduleArgs, "");
options->showDisconnected = false;
options->percent = (FFPercentageModuleConfig) { 50, 20, 0 };
+2
View File
@@ -7,3 +7,5 @@
void ffPrintBluetooth(FFBluetoothOptions* options);
void ffInitBluetoothOptions(FFBluetoothOptions* options);
void ffDestroyBluetoothOptions(FFBluetoothOptions* options);
extern FFModuleBaseInfo ffBluetoothModuleInfo;