* limitations under the License.
*/
-#ifdef USE_GDBUS
-/* standard library header */
#include <unistd.h>
#include <glib.h>
#include <gio/gio.h>
#include <string>
#include <sys/socket.h>
-/* SLP library header */
#ifdef USER_SPACE_SMACK
#include "security-server.h"
#endif
-/* local header */
#include "smartcard-types.h"
#include "Debug.h"
#include "ByteArray.h"
const gchar *interface_name, const gchar *signal_name,
GVariant *parameters, gpointer user_data)
{
- GVariantIter *iter;
gchar *name;
gchar *old_owner;
gchar *new_owner;
- iter = g_variant_iter_new(parameters);
-
- g_variant_iter_next(iter, "s", &name);
- g_variant_iter_next(iter, "s", &old_owner);
- g_variant_iter_next(iter, "s", &new_owner);
+ g_variant_get(parameters,
+ "(sss)",
+ &name,
+ &old_owner,
+ &new_owner);
name_owner_changed((GDBusProxy *)connection,
name, old_owner, new_owner, user_data);
}
}
} /* namespace smartcard_service_api */
-#endif