MCPcopy Create free account
hub / github.com/carlonluca/pot / dbus_respond_array

Method dbus_respond_array

piomxtextures_src/omxplayer_lib/OMXControl.cpp:1242–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242DBusHandlerResult OMXControl::dbus_respond_array(DBusMessage *m, const char *array[], int size)
1243{
1244 DBusMessage *reply;
1245
1246 reply = dbus_message_new_method_return(m);
1247
1248 if (!reply)
1249 {
1250 CLog::Log(LOGWARNING, "Failed to allocate message");
1251 return DBUS_HANDLER_RESULT_NEED_MEMORY;
1252 }
1253
1254 dbus_message_append_args(reply, DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &array, size, DBUS_TYPE_INVALID);
1255 dbus_connection_send(bus, reply, NULL);
1256 dbus_message_unref(reply);
1257
1258 return DBUS_HANDLER_RESULT_HANDLED;
1259}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected