nullptr

if

strcmp

fl_method_call_get_name

method_call

),

"getBatteryLevel"

==

response

get_battery_level

();

else

response

FL_METHOD_RESPONSE

fl_method_not_implemented_response_new

());

g_autoptr

GError

error

nullptr

if

fl_method_call_respond

method_call

response

error

))

g_warning

"Failed to send response: %s"

error

>