Lines Matching defs:path
378 const char *path;
382 /* get method, interface and path the message is addressed to */
384 path = dbus_message_get_path(message);
386 if (!method || !path || !msg_interface)
390 msg_interface, method, path,
445 os_free(obj_dsc->path);
460 * @dbus_path: DBus path to interface object
481 obj_desc->path = os_strdup(dbus_path);
522 * @path: DBus path to object
527 * Registers a new interface with dbus and assigns it a dbus object path.
530 const char *path, const char *ifname,
546 obj_desc->path = os_strdup(path);
550 if (!dbus_connection_try_register_object_path(con, path, &vtable,
557 ifname, path, error.name, error.message);
574 * @path: DBus path to object which will be unregistered
577 * Unregisters DBus object given by its path
580 struct wpas_dbus_priv *ctrl_iface, const char *path)
585 dbus_connection_get_object_path_data(con, path, (void **) &obj_desc);
589 __func__, path);
595 if (!dbus_connection_unregister_object_path(con, path))
654 DBusConnection *con, const char *path, const char *interface,
660 msg = dbus_message_new_signal(path, DBUS_INTERFACE_PROPERTIES,
689 DBusConnection *con, const char *path, const char *interface,
695 msg = dbus_message_new_signal(path, interface, "PropertiesChanged");
716 DBusConnection *con, const char *path, const char *interface,
725 do_send_prop_changed_signal(con, path, interface, obj_dsc);
732 do_send_deprecated_prop_changed_signal(con, path, interface, obj_dsc);
745 __func__, obj_desc->path);
746 wpa_dbus_flush_object_changed_properties(con, obj_desc->path);
751 const char *path)
757 wpa_dbus_flush_object_changed_properties(con, path);
759 if (!dbus_connection_list_registered(con, path, &objects))
764 "%s/%s", path, objects[i]);
789 * @path: path to a DBus object for which PropertiesChanged will be sent.
804 const char *path)
810 dbus_connection_get_object_path_data(con, path, (void **) &obj_desc);
820 send_prop_changed_signal(con, path, dsc->dbus_interface,
832 * @path: path to DBus object which property has changed
843 const char *path, const char *interface,
853 dbus_connection_get_object_path_data(iface->con, path,
858 path);
873 property, path);
889 * @path: path to DBus object which properties will be obtained
899 const char *path,
907 dbus_connection_get_object_path_data(iface->con, path,
912 __func__, path);
939 * wpas_dbus_new_decompose_object_path - Decompose an interface object path into parts
940 * @path: The dbus object path
943 * Returns: The object path of the interface this path refers to
945 * For a given object path, decomposes the object path into object id and
950 * As an example, path = "/fi/w1/wpa_supplicant1/Interfaces/1/Networks/0" and
954 char * wpas_dbus_new_decompose_object_path(const char *path, const char *sep,
966 if (os_strncmp(path, WPAS_DBUS_NEW_PATH_INTERFACES "/",
968 return NULL; /* not our path */
970 /* Ensure there's something at the end of the path */
971 if ((path + dev_path_prefix_len)[0] == '\0')
974 obj_path_only = os_strdup(path);
981 return obj_path_only; /* no next item on the path */
983 /* Separate network interface prefix from the path */