Skip to content

Commit

Permalink
XdpParent: rename export and unexport to avoid collision with c++ key…
Browse files Browse the repository at this point in the history
…words
  • Loading branch information
grulja committed Jan 14, 2020
1 parent 7b11b2a commit a43f7b5
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions libportal/account.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ account_call_free (AccountCall *call)
g_debug ("freeing AccountCall");
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -162,7 +162,7 @@ get_user_information (AccountCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ background_call_free (BackgroundCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -168,7 +168,7 @@ request_background (BackgroundCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/email.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ email_call_free (EmailCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -192,7 +192,7 @@ compose_email (EmailCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/filechooser.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ file_call_free (FileCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -185,7 +185,7 @@ open_file (FileCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
8 changes: 4 additions & 4 deletions libportal/inhibit.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inhibit_call_free (InhibitCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -168,7 +168,7 @@ do_inhibit (InhibitCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, inhibit_parent_exported, call);
call->parent->parent_export (call->parent, inhibit_parent_exported, call);
return;
}

Expand Down Expand Up @@ -346,7 +346,7 @@ create_monitor_call_free (CreateMonitorCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -512,7 +512,7 @@ create_monitor (CreateMonitorCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, create_parent_exported, call);
call->parent->parent_export (call->parent, create_parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/location.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ create_call_free (CreateCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -276,7 +276,7 @@ create_session (CreateCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/openuri.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ open_call_free (OpenCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -177,7 +177,7 @@ do_open (OpenCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/portal-gtk3.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ static inline XdpParent *xdp_parent_new_gtk (GtkWindow *window);
static inline XdpParent *xdp_parent_new_gtk (GtkWindow *window)
{
XdpParent *parent = g_new0 (XdpParent, 1);
parent->export = _xdp_parent_export_gtk;
parent->unexport = _xdp_parent_unexport_gtk;
parent->parent_export = _xdp_parent_export_gtk;
parent->parent_unexport = _xdp_parent_unexport_gtk;
parent->object = (GObject *) g_object_ref (window);
return parent;
}
Expand Down
4 changes: 2 additions & 2 deletions libportal/portal-gtk4.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ static inline XdpParent *xdp_parent_new_gtk (GtkWindow *window);
static inline XdpParent *xdp_parent_new_gtk (GtkWindow *window)
{
XdpParent *parent = g_new0 (XdpParent, 1);
parent->export = _xdp_parent_export_gtk;
parent->unexport = _xdp_parent_unexport_gtk;
parent->parent_export = _xdp_parent_export_gtk;
parent->parent_unexport = _xdp_parent_unexport_gtk;
parent->object = (GObject *) g_object_ref (window);
return parent;
}
Expand Down
4 changes: 2 additions & 2 deletions libportal/portal-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ typedef void (* XdpParentUnexport) (XdpParent *parent);

struct _XdpParent {
/*< private >*/
XdpParentExport export;
XdpParentUnexport unexport;
XdpParentExport parent_export;
XdpParentUnexport parent_unexport;
GObject *object;
XdpParentExported callback;
gpointer data;
Expand Down
4 changes: 2 additions & 2 deletions libportal/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ print_call_free (PrintCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -190,7 +190,7 @@ do_print (PrintCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ start_call_free (StartCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -582,7 +582,7 @@ start_session (StartCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/screenshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ screenshot_call_free (ScreenshotCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -177,7 +177,7 @@ take_screenshot (ScreenshotCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/updates.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ install_update_call_free (InstallUpdateCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -373,7 +373,7 @@ install_update (InstallUpdateCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, create_parent_exported, call);
call->parent->parent_export (call->parent, create_parent_exported, call);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions libportal/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ _xdp_parent_copy (XdpParent *source)

parent = g_new0 (XdpParent, 1);

parent->export = source->export;
parent->unexport = source->unexport;
parent->parent_export = source->parent_export;
parent->parent_unexport = source->parent_unexport;
g_set_object (&parent->object, source->object);

return parent;
Expand Down
4 changes: 2 additions & 2 deletions libportal/wallpaper.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ wallpaper_call_free (WallpaperCall *call)
{
if (call->parent)
{
call->parent->unexport (call->parent);
call->parent->parent_unexport (call->parent);
_xdp_parent_free (call->parent);
}
g_free (call->parent_handle);
Expand Down Expand Up @@ -192,7 +192,7 @@ set_wallpaper (WallpaperCall *call)

if (call->parent_handle == NULL)
{
call->parent->export (call->parent, parent_exported, call);
call->parent->parent_export (call->parent, parent_exported, call);
return;
}

Expand Down

0 comments on commit a43f7b5

Please sign in to comment.