Blame SOURCES/0147-Change-guestfs__-to-guestfs_impl_.patch

ffd6ed
From bdbd9ad42fb40b307fef6856b446322b55c97946 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Sat, 14 Feb 2015 15:26:15 +0000
ffd6ed
Subject: [PATCH] Change guestfs__* to guestfs_impl_*
ffd6ed
ffd6ed
libguestfs has used double and triple underscores in identifiers.
ffd6ed
These aren't valid for global names in C++.
ffd6ed
ffd6ed
The second step is to replace all guestfs__* (2 underscores) with
ffd6ed
guestfs_impl_*.
ffd6ed
ffd6ed
These functions are used where a libguestfs API call is implemented on
ffd6ed
the library side.  The generator creates a wrapper function which
ffd6ed
calls guestfs_impl_* to do the work.  (Libguestfs APIs which are
ffd6ed
passed directly by the daemon work differently and don't require a
ffd6ed
guestfs_impl_* function).
ffd6ed
ffd6ed
This is an entirely mechanical change done using:
ffd6ed
  git ls-files | xargs perl -pi.bak -e 's/guestfs___/guestfs_impl_/g'
ffd6ed
ffd6ed
Reference: http://stackoverflow.com/a/228797
ffd6ed
ffd6ed
RHEL 7.2:
ffd6ed
ffd6ed
I did not cherry pick commit 1efd8aa8f1b5148ba8091e0df8be0b4afd6a596a.
ffd6ed
for this.  Instead I ran the Perl command on the RHEL 7.2 tree.  Note
ffd6ed
that the perl command in the original commit message above is wrong,
ffd6ed
and should only contain two underscores.
ffd6ed
---
ffd6ed
 generator/bindtests.ml      | 10 +++---
ffd6ed
 generator/c.ml              |  4 +--
ffd6ed
 generator/types.ml          |  2 +-
ffd6ed
 po-docs/ja.po               |  2 +-
ffd6ed
 po-docs/libguestfs-docs.pot |  2 +-
ffd6ed
 po-docs/uk.po               |  2 +-
ffd6ed
 src/canonical-name.c        |  2 +-
ffd6ed
 src/create.c                |  2 +-
ffd6ed
 src/drives.c                | 18 +++++-----
ffd6ed
 src/file.c                  | 26 +++++++-------
ffd6ed
 src/filearch.c              |  4 +--
ffd6ed
 src/fuse.c                  | 12 +++----
ffd6ed
 src/guestfs.pod             |  2 +-
ffd6ed
 src/handle.c                | 86 ++++++++++++++++++++++-----------------------
ffd6ed
 src/info.c                  |  6 ++--
ffd6ed
 src/inspect-apps.c          |  4 +--
ffd6ed
 src/inspect-fs-windows.c    |  2 +-
ffd6ed
 src/inspect-icon.c          |  2 +-
ffd6ed
 src/inspect.c               | 42 +++++++++++-----------
ffd6ed
 src/journal.c               |  2 +-
ffd6ed
 src/launch.c                | 22 ++++++------
ffd6ed
 src/libvirt-auth.c          | 24 ++++++-------
ffd6ed
 src/libvirt-domain.c        |  4 +--
ffd6ed
 src/listfs.c                |  2 +-
ffd6ed
 src/tmpdirs.c               |  8 ++---
ffd6ed
 25 files changed, 146 insertions(+), 146 deletions(-)
ffd6ed
ffd6ed
diff --git a/generator/bindtests.ml b/generator/bindtests.ml
ffd6ed
index cad123e..0d2fea9 100644
ffd6ed
--- a/generator/bindtests.ml
ffd6ed
+++ b/generator/bindtests.ml
ffd6ed
@@ -46,7 +46,7 @@ let rec generate_bindtests () =
ffd6ed
 #include \"guestfs_protocol.h\"
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__internal_test_set_output (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_internal_test_set_output (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
   FILE *fp;
ffd6ed
 
ffd6ed
@@ -67,7 +67,7 @@ guestfs__internal_test_set_output (guestfs_h *g, const char *filename)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__internal_test_close_output (guestfs_h *g)
ffd6ed
+guestfs_impl_internal_test_close_output (guestfs_h *g)
ffd6ed
 {
ffd6ed
   if (g->test_fp != NULL) {
ffd6ed
     if (fclose (g->test_fp) == EOF) {
ffd6ed
@@ -141,7 +141,7 @@ fill_lvm_pv (guestfs_h *g, struct guestfs_lvm_pv *pv, size_t i)
ffd6ed
       pr " */\n";
ffd6ed
 
ffd6ed
       generate_prototype ~extern:false ~semicolon:false ~newline:true
ffd6ed
-        ~handle:"g" ~prefix:"guestfs__" ~optarg_proto:Argv name style;
ffd6ed
+        ~handle:"g" ~prefix:"guestfs_impl_" ~optarg_proto:Argv name style;
ffd6ed
       pr "{\n";
ffd6ed
       pr "  FILE *fp = get_fp (g);\n";
ffd6ed
       pr "\n";
ffd6ed
@@ -215,7 +215,7 @@ fill_lvm_pv (guestfs_h *g, struct guestfs_lvm_pv *pv, size_t i)
ffd6ed
       if String.sub name (String.length name - 3) 3 <> "err" then (
ffd6ed
         pr "/* Test normal return. */\n";
ffd6ed
         generate_prototype ~extern:false ~semicolon:false ~newline:true
ffd6ed
-          ~handle:"g" ~prefix:"guestfs__" name style;
ffd6ed
+          ~handle:"g" ~prefix:"guestfs_impl_" name style;
ffd6ed
         pr "{\n";
ffd6ed
         (match ret with
ffd6ed
          | RErr ->
ffd6ed
@@ -302,7 +302,7 @@ fill_lvm_pv (guestfs_h *g, struct guestfs_lvm_pv *pv, size_t i)
ffd6ed
       ) else (
ffd6ed
         pr "/* Test error return. */\n";
ffd6ed
         generate_prototype ~extern:false ~semicolon:false ~newline:true
ffd6ed
-          ~handle:"g" ~prefix:"guestfs__" name style;
ffd6ed
+          ~handle:"g" ~prefix:"guestfs_impl_" name style;
ffd6ed
         pr "{\n";
ffd6ed
         pr "  error (g, \"error\");\n";
ffd6ed
         (match ret with
ffd6ed
diff --git a/generator/c.ml b/generator/c.ml
ffd6ed
index 9b3bbce..966e28a 100644
ffd6ed
--- a/generator/c.ml
ffd6ed
+++ b/generator/c.ml
ffd6ed
@@ -791,7 +791,7 @@ and generate_internal_actions_h () =
ffd6ed
   List.iter (
ffd6ed
     fun { c_name = c_name; style = style } ->
ffd6ed
       generate_prototype ~single_line:true ~newline:true ~handle:"g"
ffd6ed
-        ~prefix:"guestfs__" ~optarg_proto:Argv
ffd6ed
+        ~prefix:"guestfs_impl_" ~optarg_proto:Argv
ffd6ed
         c_name style
ffd6ed
   ) non_daemon_functions;
ffd6ed
 
ffd6ed
@@ -1602,7 +1602,7 @@ and generate_client_actions hash () =
ffd6ed
     reject_unknown_optargs c_name style;
ffd6ed
     check_args_validity c_name style;
ffd6ed
     trace_call name c_name style;
ffd6ed
-    pr "  r = guestfs__%s " c_name;
ffd6ed
+    pr "  r = guestfs_impl_%s " c_name;
ffd6ed
     generate_c_call_args ~handle:"g" ~implicit_size_ptr:"size_r" style;
ffd6ed
     pr ";\n";
ffd6ed
     pr "\n";
ffd6ed
diff --git a/generator/types.ml b/generator/types.ml
ffd6ed
index 0c189bc..3ae1d47 100644
ffd6ed
--- a/generator/types.ml
ffd6ed
+++ b/generator/types.ml
ffd6ed
@@ -361,7 +361,7 @@ type action = {
ffd6ed
                                      machinery in various bindings. *)
ffd6ed
   wrapper : bool;                 (* For non-daemon functions, generate a
ffd6ed
                                      wrapper which calls the underlying
ffd6ed
-                                     guestfs__<name> function.  The wrapper
ffd6ed
+                                     guestfs_impl_<name> function.  The wrapper
ffd6ed
                                      checks arguments and deals with trace
ffd6ed
                                      messages.  Set this to false for functions
ffd6ed
                                      that have to be thread-safe. *)
ffd6ed
diff --git a/po-docs/ja.po b/po-docs/ja.po
ffd6ed
index c7d67a0..f8e843a 100644
ffd6ed
--- a/po-docs/ja.po
ffd6ed
+++ b/po-docs/ja.po
ffd6ed
@@ -84843,7 +84843,7 @@ msgstr ""
ffd6ed
 #. type: textblock
ffd6ed
 #: ../src/guestfs.pod:3924
ffd6ed
 msgid ""
ffd6ed
-"For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
ffd6ed
+"For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>> "
ffd6ed
 "(note: double underscore) in the C<src/> directory."
ffd6ed
 msgstr ""
ffd6ed
 
ffd6ed
diff --git a/po-docs/libguestfs-docs.pot b/po-docs/libguestfs-docs.pot
ffd6ed
index 1f1fb8c..50dbcff 100644
ffd6ed
--- a/po-docs/libguestfs-docs.pot
ffd6ed
+++ b/po-docs/libguestfs-docs.pot
ffd6ed
@@ -75978,7 +75978,7 @@ msgstr ""
ffd6ed
 #. type: textblock
ffd6ed
 #: ../src/guestfs.pod:3924
ffd6ed
 msgid ""
ffd6ed
-"For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
ffd6ed
+"For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>> "
ffd6ed
 "(note: double underscore) in the C<src/> directory."
ffd6ed
 msgstr ""
ffd6ed
 
ffd6ed
diff --git a/po-docs/uk.po b/po-docs/uk.po
ffd6ed
index ab16832..9f725a2 100644
ffd6ed
--- a/po-docs/uk.po
ffd6ed
+++ b/po-docs/uk.po
ffd6ed
@@ -84270,7 +84270,7 @@ msgstr ""
ffd6ed
 #. type: textblock
ffd6ed
 #: ../src/guestfs.pod:3924
ffd6ed
 msgid ""
ffd6ed
-"For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
ffd6ed
+"For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>> "
ffd6ed
 "(note: double underscore) in the C<src/> directory."
ffd6ed
 msgstr ""
ffd6ed
 
ffd6ed
diff --git a/src/canonical-name.c b/src/canonical-name.c
ffd6ed
index 6aa39e4..687b559 100644
ffd6ed
--- a/src/canonical-name.c
ffd6ed
+++ b/src/canonical-name.c
ffd6ed
@@ -27,7 +27,7 @@
ffd6ed
 #include "guestfs-internal-actions.h"
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__canonical_device_name (guestfs_h *g, const char *device)
ffd6ed
+guestfs_impl_canonical_device_name (guestfs_h *g, const char *device)
ffd6ed
 {
ffd6ed
   char *ret;
ffd6ed
   size_t len;
ffd6ed
diff --git a/src/create.c b/src/create.c
ffd6ed
index f438bdc..4e619c0 100644
ffd6ed
--- a/src/create.c
ffd6ed
+++ b/src/create.c
ffd6ed
@@ -44,7 +44,7 @@ static int disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size,
ffd6ed
 static char *qemu_escape_param (guestfs_h *g, const char *param);
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__disk_create (guestfs_h *g, const char *filename,
ffd6ed
+guestfs_impl_disk_create (guestfs_h *g, const char *filename,
ffd6ed
                       const char *format, int64_t size,
ffd6ed
                       const struct guestfs_disk_create_argv *optargs)
ffd6ed
 {
ffd6ed
diff --git a/src/drives.c b/src/drives.c
ffd6ed
index 356293e..b2ec7e0 100644
ffd6ed
--- a/src/drives.c
ffd6ed
+++ b/src/drives.c
ffd6ed
@@ -770,7 +770,7 @@ parse_servers (guestfs_h *g, char *const *strs,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_drive_opts (guestfs_h *g, const char *filename,
ffd6ed
+guestfs_impl_add_drive_opts (guestfs_h *g, const char *filename,
ffd6ed
                          const struct guestfs_add_drive_opts_argv *optargs)
ffd6ed
 {
ffd6ed
   struct drive_create_data data;
ffd6ed
@@ -988,7 +988,7 @@ guestfs__add_drive_opts (guestfs_h *g, const char *filename,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_drive_ro (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_add_drive_ro (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
   const struct guestfs_add_drive_opts_argv optargs = {
ffd6ed
     .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK,
ffd6ed
@@ -999,7 +999,7 @@ guestfs__add_drive_ro (guestfs_h *g, const char *filename)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_drive_with_if (guestfs_h *g, const char *filename,
ffd6ed
+guestfs_impl_add_drive_with_if (guestfs_h *g, const char *filename,
ffd6ed
                             const char *iface)
ffd6ed
 {
ffd6ed
   const struct guestfs_add_drive_opts_argv optargs = {
ffd6ed
@@ -1011,7 +1011,7 @@ guestfs__add_drive_with_if (guestfs_h *g, const char *filename,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_drive_ro_with_if (guestfs_h *g, const char *filename,
ffd6ed
+guestfs_impl_add_drive_ro_with_if (guestfs_h *g, const char *filename,
ffd6ed
                                const char *iface)
ffd6ed
 {
ffd6ed
   const struct guestfs_add_drive_opts_argv optargs = {
ffd6ed
@@ -1025,7 +1025,7 @@ guestfs__add_drive_ro_with_if (guestfs_h *g, const char *filename,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_drive_scratch (guestfs_h *g, int64_t size,
ffd6ed
+guestfs_impl_add_drive_scratch (guestfs_h *g, int64_t size,
ffd6ed
                             const struct guestfs_add_drive_scratch_argv *optargs)
ffd6ed
 {
ffd6ed
   struct guestfs_add_drive_opts_argv add_drive_optargs = { .bitmask = 0 };
ffd6ed
@@ -1064,9 +1064,9 @@ guestfs__add_drive_scratch (guestfs_h *g, int64_t size,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_cdrom (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_add_cdrom (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
-  return guestfs__add_drive_ro (g, filename);
ffd6ed
+  return guestfs_impl_add_drive_ro (g, filename);
ffd6ed
 }
ffd6ed
 
ffd6ed
 /* Depending on whether we are hotplugging or not, this function
ffd6ed
@@ -1077,7 +1077,7 @@ guestfs__add_cdrom (guestfs_h *g, const char *filename)
ffd6ed
  * (NULL) slot in the g->drives vector.
ffd6ed
  */
ffd6ed
 int
ffd6ed
-guestfs__remove_drive (guestfs_h *g, const char *label)
ffd6ed
+guestfs_impl_remove_drive (guestfs_h *g, const char *label)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
   struct drive *drv;
ffd6ed
@@ -1146,7 +1146,7 @@ guestfs_int_rollback_drives (guestfs_h *g, size_t old_i)
ffd6ed
 
ffd6ed
 /* Internal command to return the list of drives. */
ffd6ed
 char **
ffd6ed
-guestfs__debug_drives (guestfs_h *g)
ffd6ed
+guestfs_impl_debug_drives (guestfs_h *g)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
   DECLARE_STRINGSBUF (ret);
ffd6ed
diff --git a/src/file.c b/src/file.c
ffd6ed
index 854e7cc..417c084 100644
ffd6ed
--- a/src/file.c
ffd6ed
+++ b/src/file.c
ffd6ed
@@ -72,7 +72,7 @@ take_strings (guestfs_h *g, char *const *names, size_t n, char *const **lastp)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__cat (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_cat (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   size_t size;
ffd6ed
 
ffd6ed
@@ -80,7 +80,7 @@ guestfs__cat (guestfs_h *g, const char *path)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__read_file (guestfs_h *g, const char *path, size_t *size_r)
ffd6ed
+guestfs_impl_read_file (guestfs_h *g, const char *path, size_t *size_r)
ffd6ed
 {
ffd6ed
   int fd = -1;
ffd6ed
   size_t size;
ffd6ed
@@ -142,7 +142,7 @@ guestfs__read_file (guestfs_h *g, const char *path, size_t *size_r)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__read_lines (guestfs_h *g, const char *file)
ffd6ed
+guestfs_impl_read_lines (guestfs_h *g, const char *file)
ffd6ed
 {
ffd6ed
   size_t i, count, size, len;
ffd6ed
   CLEANUP_FREE char *buf = NULL;
ffd6ed
@@ -206,7 +206,7 @@ guestfs__read_lines (guestfs_h *g, const char *file)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__find (guestfs_h *g, const char *directory)
ffd6ed
+guestfs_impl_find (guestfs_h *g, const char *directory)
ffd6ed
 {
ffd6ed
   int fd = -1;
ffd6ed
   struct stat statbuf;
ffd6ed
@@ -364,14 +364,14 @@ write_or_append (guestfs_h *g, const char *path,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__write (guestfs_h *g, const char *path,
ffd6ed
+guestfs_impl_write (guestfs_h *g, const char *path,
ffd6ed
                 const char *content, size_t size)
ffd6ed
 {
ffd6ed
   return write_or_append (g, path, content, size, 0);
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__write_append (guestfs_h *g, const char *path,
ffd6ed
+guestfs_impl_write_append (guestfs_h *g, const char *path,
ffd6ed
                        const char *content, size_t size)
ffd6ed
 {
ffd6ed
   return write_or_append (g, path, content, size, 1);
ffd6ed
@@ -380,7 +380,7 @@ guestfs__write_append (guestfs_h *g, const char *path,
ffd6ed
 #define LSTATNSLIST_MAX 1000
ffd6ed
 
ffd6ed
 struct guestfs_statns_list *
ffd6ed
-guestfs__lstatnslist (guestfs_h *g, const char *dir, char * const*names)
ffd6ed
+guestfs_impl_lstatnslist (guestfs_h *g, const char *dir, char * const*names)
ffd6ed
 {
ffd6ed
   size_t len = guestfs_int_count_strings (names);
ffd6ed
   size_t old_len;
ffd6ed
@@ -422,7 +422,7 @@ guestfs__lstatnslist (guestfs_h *g, const char *dir, char * const*names)
ffd6ed
 #define LXATTRLIST_MAX 1000
ffd6ed
 
ffd6ed
 struct guestfs_xattr_list *
ffd6ed
-guestfs__lxattrlist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
+guestfs_impl_lxattrlist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
 {
ffd6ed
   size_t len = guestfs_int_count_strings (names);
ffd6ed
   size_t i, old_len;
ffd6ed
@@ -470,7 +470,7 @@ guestfs__lxattrlist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
 #define READLINK_MAX 1000
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__readlinklist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
+guestfs_impl_readlinklist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
 {
ffd6ed
   size_t len = guestfs_int_count_strings (names);
ffd6ed
   size_t old_len, ret_len = 0;
ffd6ed
@@ -508,7 +508,7 @@ guestfs__readlinklist (guestfs_h *g, const char *dir, char *const *names)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__ls (guestfs_h *g, const char *directory)
ffd6ed
+guestfs_impl_ls (guestfs_h *g, const char *directory)
ffd6ed
 {
ffd6ed
   int fd = -1;
ffd6ed
   struct stat statbuf;
ffd6ed
@@ -622,7 +622,7 @@ statns_to_old_stat (struct guestfs_statns *a, struct guestfs_stat *r)
ffd6ed
 }
ffd6ed
 
ffd6ed
 struct guestfs_stat *
ffd6ed
-guestfs__stat (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_stat (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   CLEANUP_FREE_STATNS struct guestfs_statns *r;
ffd6ed
   struct guestfs_stat *ret;
ffd6ed
@@ -637,7 +637,7 @@ guestfs__stat (guestfs_h *g, const char *path)
ffd6ed
 }
ffd6ed
 
ffd6ed
 struct guestfs_stat *
ffd6ed
-guestfs__lstat (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_lstat (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   CLEANUP_FREE_STATNS struct guestfs_statns *r;
ffd6ed
   struct guestfs_stat *ret;
ffd6ed
@@ -652,7 +652,7 @@ guestfs__lstat (guestfs_h *g, const char *path)
ffd6ed
 }
ffd6ed
 
ffd6ed
 struct guestfs_stat_list *
ffd6ed
-guestfs__lstatlist (guestfs_h *g, const char *dir, char * const*names)
ffd6ed
+guestfs_impl_lstatlist (guestfs_h *g, const char *dir, char * const*names)
ffd6ed
 {
ffd6ed
   CLEANUP_FREE_STATNS_LIST struct guestfs_statns_list *r;
ffd6ed
   struct guestfs_stat_list *ret;
ffd6ed
diff --git a/src/filearch.c b/src/filearch.c
ffd6ed
index 7591ff8..fdc818d 100644
ffd6ed
--- a/src/filearch.c
ffd6ed
+++ b/src/filearch.c
ffd6ed
@@ -339,7 +339,7 @@ compressed_file_arch (guestfs_h *g, const char *path, const char *method)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__file_architecture (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_file_architecture (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   CLEANUP_FREE char *file = NULL;
ffd6ed
   CLEANUP_FREE char *elf_arch = NULL;
ffd6ed
@@ -379,7 +379,7 @@ guestfs__file_architecture (guestfs_h *g, const char *path)
ffd6ed
   return r
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__file_architecture (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_file_architecture (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   NOT_IMPL(NULL);
ffd6ed
 }
ffd6ed
diff --git a/src/fuse.c b/src/fuse.c
ffd6ed
index f8d148b..4ff7315 100644
ffd6ed
--- a/src/fuse.c
ffd6ed
+++ b/src/fuse.c
ffd6ed
@@ -952,7 +952,7 @@ static struct fuse_operations mount_local_operations = {
ffd6ed
 };
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__mount_local (guestfs_h *g, const char *localmountpoint,
ffd6ed
+guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint,
ffd6ed
                       const struct guestfs_mount_local_argv *optargs)
ffd6ed
 {
ffd6ed
   const char *t;
ffd6ed
@@ -1045,7 +1045,7 @@ guestfs__mount_local (guestfs_h *g, const char *localmountpoint,
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__mount_local_run (guestfs_h *g)
ffd6ed
+guestfs_impl_mount_local_run (guestfs_h *g)
ffd6ed
 {
ffd6ed
   int r, mounted;
ffd6ed
 
ffd6ed
@@ -1100,7 +1100,7 @@ guestfs_int_free_fuse (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__umount_local (guestfs_h *g,
ffd6ed
+guestfs_impl_umount_local (guestfs_h *g,
ffd6ed
                        const struct guestfs_umount_local_argv *optargs)
ffd6ed
 {
ffd6ed
   const char *retry;
ffd6ed
@@ -1503,20 +1503,20 @@ dir_cache_invalidate (guestfs_h *g, const char *path)
ffd6ed
                           "when libguestfs was compiled"))
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__mount_local (guestfs_h *g, const char *localmountpoint,
ffd6ed
+guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint,
ffd6ed
                       const struct guestfs_mount_local_argv *optargs)
ffd6ed
 {
ffd6ed
   FUSE_NOT_SUPPORTED ();
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__mount_local_run (guestfs_h *g)
ffd6ed
+guestfs_impl_mount_local_run (guestfs_h *g)
ffd6ed
 {
ffd6ed
   FUSE_NOT_SUPPORTED ();
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__umount_local (guestfs_h *g,
ffd6ed
+guestfs_impl_umount_local (guestfs_h *g,
ffd6ed
                        const struct guestfs_umount_local_argv *optargs)
ffd6ed
 {
ffd6ed
   FUSE_NOT_SUPPORTED ();
ffd6ed
diff --git a/src/guestfs.pod b/src/guestfs.pod
ffd6ed
index 81347f3..7b7a7c0 100644
ffd6ed
--- a/src/guestfs.pod
ffd6ed
+++ b/src/guestfs.pod
ffd6ed
@@ -3811,7 +3811,7 @@ Implement the action (in C):
ffd6ed
 For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the
ffd6ed
 C<daemon/> directory.
ffd6ed
 
ffd6ed
-For library actions, implement the function C<guestfs__E<lt>nameE<gt>>
ffd6ed
+For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>>
ffd6ed
 (note: double underscore) in the C<src/> directory.
ffd6ed
 
ffd6ed
 In either case, use another function as an example of what to do.
ffd6ed
diff --git a/src/handle.c b/src/handle.c
ffd6ed
index b712e21..5dc0992 100644
ffd6ed
--- a/src/handle.c
ffd6ed
+++ b/src/handle.c
ffd6ed
@@ -284,7 +284,7 @@ call_getenv (const void *data, const char *name)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__parse_environment (guestfs_h *g)
ffd6ed
+guestfs_impl_parse_environment (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return parse_environment (g, call_getenv, NULL);
ffd6ed
 }
ffd6ed
@@ -303,7 +303,7 @@ getenv_from_strings (const void *stringsv, const char *name)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__parse_environment_list (guestfs_h *g, char * const *strings)
ffd6ed
+guestfs_impl_parse_environment_list (guestfs_h *g, char * const *strings)
ffd6ed
 {
ffd6ed
   return parse_environment (g, getenv_from_strings, strings);
ffd6ed
 }
ffd6ed
@@ -393,7 +393,7 @@ guestfs_close (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__shutdown (guestfs_h *g)
ffd6ed
+guestfs_impl_shutdown (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return shutdown_backend (g, 1);
ffd6ed
 }
ffd6ed
@@ -459,33 +459,33 @@ close_handles (void)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_verbose (guestfs_h *g, int v)
ffd6ed
+guestfs_impl_set_verbose (guestfs_h *g, int v)
ffd6ed
 {
ffd6ed
   g->verbose = !!v;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_verbose (guestfs_h *g)
ffd6ed
+guestfs_impl_get_verbose (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->verbose;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_autosync (guestfs_h *g, int a)
ffd6ed
+guestfs_impl_set_autosync (guestfs_h *g, int a)
ffd6ed
 {
ffd6ed
   g->autosync = !!a;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_autosync (guestfs_h *g)
ffd6ed
+guestfs_impl_get_autosync (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->autosync;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_path (guestfs_h *g, const char *path)
ffd6ed
+guestfs_impl_set_path (guestfs_h *g, const char *path)
ffd6ed
 {
ffd6ed
   free (g->path);
ffd6ed
   g->path = NULL;
ffd6ed
@@ -497,13 +497,13 @@ guestfs__set_path (guestfs_h *g, const char *path)
ffd6ed
 }
ffd6ed
 
ffd6ed
 const char *
ffd6ed
-guestfs__get_path (guestfs_h *g)
ffd6ed
+guestfs_impl_get_path (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->path;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_qemu (guestfs_h *g, const char *qemu)
ffd6ed
+guestfs_impl_set_qemu (guestfs_h *g, const char *qemu)
ffd6ed
 {
ffd6ed
   char *new_hv;
ffd6ed
 
ffd6ed
@@ -529,13 +529,13 @@ guestfs__set_qemu (guestfs_h *g, const char *qemu)
ffd6ed
 }
ffd6ed
 
ffd6ed
 const char *
ffd6ed
-guestfs__get_qemu (guestfs_h *g)
ffd6ed
+guestfs_impl_get_qemu (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->hv;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_hv (guestfs_h *g, const char *hv)
ffd6ed
+guestfs_impl_set_hv (guestfs_h *g, const char *hv)
ffd6ed
 {
ffd6ed
   free (g->hv);
ffd6ed
   g->hv = safe_strdup (g, hv);
ffd6ed
@@ -543,13 +543,13 @@ guestfs__set_hv (guestfs_h *g, const char *hv)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_hv (guestfs_h *g)
ffd6ed
+guestfs_impl_get_hv (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return safe_strdup (g, g->hv);
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_append (guestfs_h *g, const char *append)
ffd6ed
+guestfs_impl_set_append (guestfs_h *g, const char *append)
ffd6ed
 {
ffd6ed
   free (g->append);
ffd6ed
   g->append = NULL;
ffd6ed
@@ -559,13 +559,13 @@ guestfs__set_append (guestfs_h *g, const char *append)
ffd6ed
 }
ffd6ed
 
ffd6ed
 const char *
ffd6ed
-guestfs__get_append (guestfs_h *g)
ffd6ed
+guestfs_impl_get_append (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->append;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_memsize (guestfs_h *g, int memsize)
ffd6ed
+guestfs_impl_set_memsize (guestfs_h *g, int memsize)
ffd6ed
 {
ffd6ed
   if (memsize < MIN_MEMSIZE) {
ffd6ed
     error (g, _("too small value for memsize (must be at least %d)"), MIN_MEMSIZE);
ffd6ed
@@ -576,26 +576,26 @@ guestfs__set_memsize (guestfs_h *g, int memsize)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_memsize (guestfs_h *g)
ffd6ed
+guestfs_impl_get_memsize (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->memsize;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_selinux (guestfs_h *g, int selinux)
ffd6ed
+guestfs_impl_set_selinux (guestfs_h *g, int selinux)
ffd6ed
 {
ffd6ed
   g->selinux = selinux;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_selinux (guestfs_h *g)
ffd6ed
+guestfs_impl_get_selinux (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->selinux;
ffd6ed
 }
ffd6ed
 
ffd6ed
 struct guestfs_version *
ffd6ed
-guestfs__version (guestfs_h *g)
ffd6ed
+guestfs_impl_version (guestfs_h *g)
ffd6ed
 {
ffd6ed
   struct guestfs_version *r;
ffd6ed
 
ffd6ed
@@ -608,59 +608,59 @@ guestfs__version (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_trace (guestfs_h *g, int t)
ffd6ed
+guestfs_impl_set_trace (guestfs_h *g, int t)
ffd6ed
 {
ffd6ed
   g->trace = !!t;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_trace (guestfs_h *g)
ffd6ed
+guestfs_impl_get_trace (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->trace;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_direct (guestfs_h *g, int d)
ffd6ed
+guestfs_impl_set_direct (guestfs_h *g, int d)
ffd6ed
 {
ffd6ed
   g->direct_mode = !!d;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_direct (guestfs_h *g)
ffd6ed
+guestfs_impl_get_direct (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->direct_mode;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_recovery_proc (guestfs_h *g, int f)
ffd6ed
+guestfs_impl_set_recovery_proc (guestfs_h *g, int f)
ffd6ed
 {
ffd6ed
   g->recovery_proc = !!f;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_recovery_proc (guestfs_h *g)
ffd6ed
+guestfs_impl_get_recovery_proc (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->recovery_proc;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_network (guestfs_h *g, int v)
ffd6ed
+guestfs_impl_set_network (guestfs_h *g, int v)
ffd6ed
 {
ffd6ed
   g->enable_network = !!v;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_network (guestfs_h *g)
ffd6ed
+guestfs_impl_get_network (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->enable_network;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_program (guestfs_h *g, const char *program)
ffd6ed
+guestfs_impl_set_program (guestfs_h *g, const char *program)
ffd6ed
 {
ffd6ed
   free (g->program);
ffd6ed
   g->program = safe_strdup (g, program);
ffd6ed
@@ -669,13 +669,13 @@ guestfs__set_program (guestfs_h *g, const char *program)
ffd6ed
 }
ffd6ed
 
ffd6ed
 const char *
ffd6ed
-guestfs__get_program (guestfs_h *g)
ffd6ed
+guestfs_impl_get_program (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->program;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_backend (guestfs_h *g, const char *method)
ffd6ed
+guestfs_impl_set_backend (guestfs_h *g, const char *method)
ffd6ed
 {
ffd6ed
   if (guestfs_int_set_backend (g, method) == -1) {
ffd6ed
     error (g, "invalid backend: %s", method);
ffd6ed
@@ -686,19 +686,19 @@ guestfs__set_backend (guestfs_h *g, const char *method)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_attach_method (guestfs_h *g, const char *method)
ffd6ed
+guestfs_impl_set_attach_method (guestfs_h *g, const char *method)
ffd6ed
 {
ffd6ed
   return guestfs_set_backend (g, method);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_backend (guestfs_h *g)
ffd6ed
+guestfs_impl_get_backend (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return safe_strdup (g, g->backend);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_attach_method (guestfs_h *g)
ffd6ed
+guestfs_impl_get_attach_method (guestfs_h *g)
ffd6ed
 {
ffd6ed
   if (STREQ (g->backend, "direct"))
ffd6ed
     /* Return 'appliance' here for backwards compatibility. */
ffd6ed
@@ -708,7 +708,7 @@ guestfs__get_attach_method (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_backend_settings (guestfs_h *g, char *const *settings)
ffd6ed
+guestfs_impl_set_backend_settings (guestfs_h *g, char *const *settings)
ffd6ed
 {
ffd6ed
   char **copy;
ffd6ed
 
ffd6ed
@@ -725,7 +725,7 @@ guestfs__set_backend_settings (guestfs_h *g, char *const *settings)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__get_backend_settings (guestfs_h *g)
ffd6ed
+guestfs_impl_get_backend_settings (guestfs_h *g)
ffd6ed
 {
ffd6ed
   char *empty_list[1] = { NULL };
ffd6ed
   char **ret;
ffd6ed
@@ -744,7 +744,7 @@ guestfs__get_backend_settings (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_backend_setting (guestfs_h *g, const char *name)
ffd6ed
+guestfs_impl_get_backend_setting (guestfs_h *g, const char *name)
ffd6ed
 {
ffd6ed
   char **settings = g->backend_settings;
ffd6ed
   size_t namelen = strlen (name);
ffd6ed
@@ -768,7 +768,7 @@ guestfs__get_backend_setting (guestfs_h *g, const char *name)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__clear_backend_setting (guestfs_h *g, const char *name)
ffd6ed
+guestfs_impl_clear_backend_setting (guestfs_h *g, const char *name)
ffd6ed
 {
ffd6ed
   char **settings = g->backend_settings;
ffd6ed
   size_t namelen = strlen (name);
ffd6ed
@@ -796,7 +796,7 @@ guestfs__clear_backend_setting (guestfs_h *g, const char *name)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_backend_setting (guestfs_h *g, const char *name, const char *value)
ffd6ed
+guestfs_impl_set_backend_setting (guestfs_h *g, const char *name, const char *value)
ffd6ed
 {
ffd6ed
   char *new_setting;
ffd6ed
   size_t len;
ffd6ed
@@ -848,20 +848,20 @@ guestfs_int_get_backend_setting_bool (guestfs_h *g, const char *name)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_pgroup (guestfs_h *g, int v)
ffd6ed
+guestfs_impl_set_pgroup (guestfs_h *g, int v)
ffd6ed
 {
ffd6ed
   g->pgroup = !!v;
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_pgroup (guestfs_h *g)
ffd6ed
+guestfs_impl_get_pgroup (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->pgroup;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_smp (guestfs_h *g, int v)
ffd6ed
+guestfs_impl_set_smp (guestfs_h *g, int v)
ffd6ed
 {
ffd6ed
   if (v > 255) {
ffd6ed
     error (g, "unsupported number of smp vcpus: %d", v);
ffd6ed
@@ -876,7 +876,7 @@ guestfs__set_smp (guestfs_h *g, int v)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_smp (guestfs_h *g)
ffd6ed
+guestfs_impl_get_smp (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->smp;
ffd6ed
 }
ffd6ed
diff --git a/src/info.c b/src/info.c
ffd6ed
index cec042b..9a967d4 100644
ffd6ed
--- a/src/info.c
ffd6ed
+++ b/src/info.c
ffd6ed
@@ -51,7 +51,7 @@ static int64_t old_parser_disk_virtual_size (guestfs_h *g, const char *filename)
ffd6ed
 static int old_parser_disk_has_backing_file (guestfs_h *g, const char *filename);
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__disk_format (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_disk_format (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
   switch (which_parser (g)) {
ffd6ed
   case QEMU_IMG_INFO_NEW_PARSER:
ffd6ed
@@ -66,7 +66,7 @@ guestfs__disk_format (guestfs_h *g, const char *filename)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int64_t
ffd6ed
-guestfs__disk_virtual_size (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_disk_virtual_size (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
   switch (which_parser (g)) {
ffd6ed
   case QEMU_IMG_INFO_NEW_PARSER:
ffd6ed
@@ -81,7 +81,7 @@ guestfs__disk_virtual_size (guestfs_h *g, const char *filename)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__disk_has_backing_file (guestfs_h *g, const char *filename)
ffd6ed
+guestfs_impl_disk_has_backing_file (guestfs_h *g, const char *filename)
ffd6ed
 {
ffd6ed
   switch (which_parser (g)) {
ffd6ed
   case QEMU_IMG_INFO_NEW_PARSER:
ffd6ed
diff --git a/src/inspect-apps.c b/src/inspect-apps.c
ffd6ed
index 64b0602..bfc31eb 100644
ffd6ed
--- a/src/inspect-apps.c
ffd6ed
+++ b/src/inspect-apps.c
ffd6ed
@@ -65,7 +65,7 @@ static void sort_applications (struct guestfs_application2_list *);
ffd6ed
  * just a wrapper around guestfs_inspect_list_applications2.
ffd6ed
  */
ffd6ed
 struct guestfs_application_list *
ffd6ed
-guestfs__inspect_list_applications (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_list_applications (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct guestfs_application_list *ret;
ffd6ed
   struct guestfs_application2_list *r;
ffd6ed
@@ -112,7 +112,7 @@ guestfs__inspect_list_applications (guestfs_h *g, const char *root)
ffd6ed
  * disks are mounted up, and reads files from the mounted disks.
ffd6ed
  */
ffd6ed
 struct guestfs_application2_list *
ffd6ed
-guestfs__inspect_list_applications2 (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_list_applications2 (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct guestfs_application2_list *ret = NULL;
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
ffd6ed
index 80e60b4..deaed57 100644
ffd6ed
--- a/src/inspect-fs-windows.c
ffd6ed
+++ b/src/inspect-fs-windows.c
ffd6ed
@@ -623,7 +623,7 @@ guestfs_int_case_sensitive_path_silently (guestfs_h *g, const char *path)
ffd6ed
 static char *utf16_to_utf8 (/* const */ char *input, size_t len);
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__hivex_value_utf8 (guestfs_h *g, int64_t valueh)
ffd6ed
+guestfs_impl_hivex_value_utf8 (guestfs_h *g, int64_t valueh)
ffd6ed
 {
ffd6ed
   char *ret;
ffd6ed
   size_t buflen;
ffd6ed
diff --git a/src/inspect-icon.c b/src/inspect-icon.c
ffd6ed
index 866c80e..bf931b4 100644
ffd6ed
--- a/src/inspect-icon.c
ffd6ed
+++ b/src/inspect-icon.c
ffd6ed
@@ -84,7 +84,7 @@ static char *NOT_FOUND = (char *) "not_found";
ffd6ed
  * Check optargs for the optional argument.
ffd6ed
  */
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_icon (guestfs_h *g, const char *root, size_t *size_r,
ffd6ed
+guestfs_impl_inspect_get_icon (guestfs_h *g, const char *root, size_t *size_r,
ffd6ed
                            const struct guestfs_inspect_get_icon_argv *optargs)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs;
ffd6ed
diff --git a/src/inspect.c b/src/inspect.c
ffd6ed
index 311175d..5c16ade 100644
ffd6ed
--- a/src/inspect.c
ffd6ed
+++ b/src/inspect.c
ffd6ed
@@ -39,7 +39,7 @@
ffd6ed
 
ffd6ed
 /* The main inspection code. */
ffd6ed
 char **
ffd6ed
-guestfs__inspect_os (guestfs_h *g)
ffd6ed
+guestfs_impl_inspect_os (guestfs_h *g)
ffd6ed
 {
ffd6ed
   CLEANUP_FREE_STRING_LIST char **fses = NULL;
ffd6ed
   char **fs, **ret;
ffd6ed
@@ -85,7 +85,7 @@ compare_strings (const void *vp1, const void *vp2)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__inspect_get_roots (guestfs_h *g)
ffd6ed
+guestfs_impl_inspect_get_roots (guestfs_h *g)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
   DECLARE_STRINGSBUF (ret);
ffd6ed
@@ -105,7 +105,7 @@ guestfs__inspect_get_roots (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_type (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_type (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   char *ret = NULL;
ffd6ed
@@ -132,7 +132,7 @@ guestfs__inspect_get_type (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_arch (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_arch (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -142,7 +142,7 @@ guestfs__inspect_get_arch (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_distro (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_distro (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   char *ret = NULL;
ffd6ed
@@ -186,7 +186,7 @@ guestfs__inspect_get_distro (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__inspect_get_major_version (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_major_version (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -196,7 +196,7 @@ guestfs__inspect_get_major_version (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__inspect_get_minor_version (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_minor_version (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -206,7 +206,7 @@ guestfs__inspect_get_minor_version (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_product_name (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_product_name (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -216,7 +216,7 @@ guestfs__inspect_get_product_name (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_product_variant (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_product_variant (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -226,7 +226,7 @@ guestfs__inspect_get_product_variant (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_windows_systemroot (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_windows_systemroot (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -241,7 +241,7 @@ guestfs__inspect_get_windows_systemroot (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_windows_current_control_set (guestfs_h *g,
ffd6ed
+guestfs_impl_inspect_get_windows_current_control_set (guestfs_h *g,
ffd6ed
                                                   const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
@@ -257,7 +257,7 @@ guestfs__inspect_get_windows_current_control_set (guestfs_h *g,
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_format (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_format (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   char *ret = NULL;
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
@@ -277,7 +277,7 @@ guestfs__inspect_get_format (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__inspect_is_live (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_is_live (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -287,7 +287,7 @@ guestfs__inspect_is_live (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__inspect_is_netinst (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_is_netinst (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -297,7 +297,7 @@ guestfs__inspect_is_netinst (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__inspect_is_multipart (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_is_multipart (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
@@ -307,7 +307,7 @@ guestfs__inspect_is_multipart (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__inspect_get_mountpoints (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_mountpoints (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   char **ret;
ffd6ed
   size_t i, count, nr;
ffd6ed
@@ -358,7 +358,7 @@ guestfs__inspect_get_mountpoints (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__inspect_get_filesystems (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_filesystems (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   char **ret;
ffd6ed
   size_t i, nr;
ffd6ed
@@ -388,7 +388,7 @@ guestfs__inspect_get_filesystems (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__inspect_get_drive_mappings (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_drive_mappings (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   DECLARE_STRINGSBUF (ret);
ffd6ed
   size_t i;
ffd6ed
@@ -408,7 +408,7 @@ guestfs__inspect_get_drive_mappings (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_package_format (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_package_format (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   char *ret = NULL;
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
@@ -434,7 +434,7 @@ guestfs__inspect_get_package_format (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_package_management (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_package_management (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   char *ret = NULL;
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
@@ -462,7 +462,7 @@ guestfs__inspect_get_package_management (guestfs_h *g, const char *root)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__inspect_get_hostname (guestfs_h *g, const char *root)
ffd6ed
+guestfs_impl_inspect_get_hostname (guestfs_h *g, const char *root)
ffd6ed
 {
ffd6ed
   struct inspect_fs *fs = guestfs_int_search_for_root (g, root);
ffd6ed
   if (!fs)
ffd6ed
diff --git a/src/journal.c b/src/journal.c
ffd6ed
index d2e7269..f01d46f 100644
ffd6ed
--- a/src/journal.c
ffd6ed
+++ b/src/journal.c
ffd6ed
@@ -49,7 +49,7 @@
ffd6ed
  * hashtable entries from that.
ffd6ed
  */
ffd6ed
 struct guestfs_xattr_list *
ffd6ed
-guestfs__journal_get (guestfs_h *g)
ffd6ed
+guestfs_impl_journal_get (guestfs_h *g)
ffd6ed
 {
ffd6ed
   CLEANUP_UNLINK_FREE char *tmpfile = NULL;
ffd6ed
   CLEANUP_FREE char *buf = NULL;
ffd6ed
diff --git a/src/launch.c b/src/launch.c
ffd6ed
index 18736e6..46ee875 100644
ffd6ed
--- a/src/launch.c
ffd6ed
+++ b/src/launch.c
ffd6ed
@@ -46,7 +46,7 @@ static struct backend {
ffd6ed
 static mode_t get_umask (guestfs_h *g);
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__launch (guestfs_h *g)
ffd6ed
+guestfs_impl_launch (guestfs_h *g)
ffd6ed
 {
ffd6ed
   /* Configured? */
ffd6ed
   if (g->state != CONFIG) {
ffd6ed
@@ -166,7 +166,7 @@ guestfs_int_timeval_diff (const struct timeval *x, const struct timeval *y)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_pid (guestfs_h *g)
ffd6ed
+guestfs_impl_get_pid (guestfs_h *g)
ffd6ed
 {
ffd6ed
   if (g->state != READY || g->backend_ops == NULL) {
ffd6ed
     error (g, _("get-pid can only be called after launch"));
ffd6ed
@@ -182,7 +182,7 @@ guestfs__get_pid (guestfs_h *g)
ffd6ed
 
ffd6ed
 /* Maximum number of disks. */
ffd6ed
 int
ffd6ed
-guestfs__max_disks (guestfs_h *g)
ffd6ed
+guestfs_impl_max_disks (guestfs_h *g)
ffd6ed
 {
ffd6ed
   if (g->backend_ops->max_disks == NULL)
ffd6ed
     NOT_SUPPORTED (g, -1,
ffd6ed
@@ -195,7 +195,7 @@ guestfs__max_disks (guestfs_h *g)
ffd6ed
  * but it is now a no-op.
ffd6ed
  */
ffd6ed
 int
ffd6ed
-guestfs__wait_ready (guestfs_h *g)
ffd6ed
+guestfs_impl_wait_ready (guestfs_h *g)
ffd6ed
 {
ffd6ed
   if (g->state != READY)  {
ffd6ed
     error (g, _("qemu has not been launched yet"));
ffd6ed
@@ -206,46 +206,46 @@ guestfs__wait_ready (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__kill_subprocess (guestfs_h *g)
ffd6ed
+guestfs_impl_kill_subprocess (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return guestfs_shutdown (g);
ffd6ed
 }
ffd6ed
 
ffd6ed
 /* Access current state. */
ffd6ed
 int
ffd6ed
-guestfs__is_config (guestfs_h *g)
ffd6ed
+guestfs_impl_is_config (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->state == CONFIG;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__is_launching (guestfs_h *g)
ffd6ed
+guestfs_impl_is_launching (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->state == LAUNCHING;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__is_ready (guestfs_h *g)
ffd6ed
+guestfs_impl_is_ready (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->state == READY;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__is_busy (guestfs_h *g)
ffd6ed
+guestfs_impl_is_busy (guestfs_h *g)
ffd6ed
 {
ffd6ed
   /* There used to be a BUSY state but it was removed in 1.17.36. */
ffd6ed
   return 0;
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__get_state (guestfs_h *g)
ffd6ed
+guestfs_impl_get_state (guestfs_h *g)
ffd6ed
 {
ffd6ed
   return g->state;
ffd6ed
 }
ffd6ed
 
ffd6ed
 /* Add arbitrary qemu parameters.  Useful for testing. */
ffd6ed
 int
ffd6ed
-guestfs__config (guestfs_h *g,
ffd6ed
+guestfs_impl_config (guestfs_h *g,
ffd6ed
                  const char *hv_param, const char *hv_value)
ffd6ed
 {
ffd6ed
   struct hv_param *hp;
ffd6ed
diff --git a/src/libvirt-auth.c b/src/libvirt-auth.c
ffd6ed
index af8b4a4..68d1f12 100644
ffd6ed
--- a/src/libvirt-auth.c
ffd6ed
+++ b/src/libvirt-auth.c
ffd6ed
@@ -82,7 +82,7 @@ get_string_of_credtype (int credtype)
ffd6ed
  * an error or not, so don't depend on the current behaviour.
ffd6ed
  */
ffd6ed
 int
ffd6ed
-guestfs__set_libvirt_supported_credentials (guestfs_h *g, char *const *creds)
ffd6ed
+guestfs_impl_set_libvirt_supported_credentials (guestfs_h *g, char *const *creds)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
   int credtype;
ffd6ed
@@ -248,7 +248,7 @@ guestfs_int_open_libvirt_connection (guestfs_h *g, const char *uri,
ffd6ed
   }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__get_libvirt_requested_credentials (guestfs_h *g)
ffd6ed
+guestfs_impl_get_libvirt_requested_credentials (guestfs_h *g)
ffd6ed
 {
ffd6ed
   DECLARE_STRINGSBUF (ret);
ffd6ed
   size_t i;
ffd6ed
@@ -265,7 +265,7 @@ guestfs__get_libvirt_requested_credentials (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_prompt (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_prompt (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
 
ffd6ed
@@ -285,7 +285,7 @@ guestfs__get_libvirt_requested_credential_prompt (guestfs_h *g, int index)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_challenge (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_challenge (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
 
ffd6ed
@@ -305,7 +305,7 @@ guestfs__get_libvirt_requested_credential_challenge (guestfs_h *g, int index)
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_defresult (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_defresult (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
 
ffd6ed
@@ -325,7 +325,7 @@ guestfs__get_libvirt_requested_credential_defresult (guestfs_h *g, int index)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_libvirt_requested_credential (guestfs_h *g, int index,
ffd6ed
+guestfs_impl_set_libvirt_requested_credential (guestfs_h *g, int index,
ffd6ed
                                            const char *cred, size_t cred_size)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
@@ -359,37 +359,37 @@ guestfs__set_libvirt_requested_credential (guestfs_h *g, int index,
ffd6ed
   return r
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_libvirt_supported_credentials (guestfs_h *g, char *const *creds)
ffd6ed
+guestfs_impl_set_libvirt_supported_credentials (guestfs_h *g, char *const *creds)
ffd6ed
 {
ffd6ed
   NOT_IMPL(-1);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__get_libvirt_requested_credentials (guestfs_h *g)
ffd6ed
+guestfs_impl_get_libvirt_requested_credentials (guestfs_h *g)
ffd6ed
 {
ffd6ed
   NOT_IMPL(NULL);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_prompt (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_prompt (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   NOT_IMPL(NULL);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_challenge (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_challenge (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   NOT_IMPL(NULL);
ffd6ed
 }
ffd6ed
 
ffd6ed
 char *
ffd6ed
-guestfs__get_libvirt_requested_credential_defresult (guestfs_h *g, int index)
ffd6ed
+guestfs_impl_get_libvirt_requested_credential_defresult (guestfs_h *g, int index)
ffd6ed
 {
ffd6ed
   NOT_IMPL(NULL);
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_libvirt_requested_credential (guestfs_h *g, int index, const char *cred, size_t cred_size)
ffd6ed
+guestfs_impl_set_libvirt_requested_credential (guestfs_h *g, int index, const char *cred, size_t cred_size)
ffd6ed
 {
ffd6ed
   NOT_IMPL(-1);
ffd6ed
 }
ffd6ed
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
ffd6ed
index 7897240..7fb9fd0 100644
ffd6ed
--- a/src/libvirt-domain.c
ffd6ed
+++ b/src/libvirt-domain.c
ffd6ed
@@ -50,7 +50,7 @@ ignore_errors (void *ignore, virErrorPtr ignore2)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_domain (guestfs_h *g, const char *domain_name,
ffd6ed
+guestfs_impl_add_domain (guestfs_h *g, const char *domain_name,
ffd6ed
                      const struct guestfs_add_domain_argv *optargs)
ffd6ed
 {
ffd6ed
   virErrorPtr err;
ffd6ed
@@ -783,7 +783,7 @@ get_domain_xml (guestfs_h *g, virDomainPtr dom)
ffd6ed
   return r
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__add_domain (guestfs_h *g, const char *dom,
ffd6ed
+guestfs_impl_add_domain (guestfs_h *g, const char *dom,
ffd6ed
                      const struct guestfs_add_domain_argv *optargs)
ffd6ed
 {
ffd6ed
   NOT_IMPL(-1);
ffd6ed
diff --git a/src/listfs.c b/src/listfs.c
ffd6ed
index 836ede2..707e229 100644
ffd6ed
--- a/src/listfs.c
ffd6ed
+++ b/src/listfs.c
ffd6ed
@@ -43,7 +43,7 @@ static int check_with_vfs_type (guestfs_h *g, const char *dev, struct stringsbuf
ffd6ed
 static int is_mbr_partition_type_42 (guestfs_h *g, const char *partition);
ffd6ed
 
ffd6ed
 char **
ffd6ed
-guestfs__list_filesystems (guestfs_h *g)
ffd6ed
+guestfs_impl_list_filesystems (guestfs_h *g)
ffd6ed
 {
ffd6ed
   size_t i;
ffd6ed
   DECLARE_STRINGSBUF (ret);
ffd6ed
diff --git a/src/tmpdirs.c b/src/tmpdirs.c
ffd6ed
index 1e49ba7..b1f1445 100644
ffd6ed
--- a/src/tmpdirs.c
ffd6ed
+++ b/src/tmpdirs.c
ffd6ed
@@ -78,14 +78,14 @@ guestfs_int_set_env_tmpdir (guestfs_h *g, const char *tmpdir)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_tmpdir (guestfs_h *g, const char *tmpdir)
ffd6ed
+guestfs_impl_set_tmpdir (guestfs_h *g, const char *tmpdir)
ffd6ed
 {
ffd6ed
   return set_abs_path (g, tmpdir, &g->int_tmpdir);
ffd6ed
 }
ffd6ed
 
ffd6ed
 /* Note this actually calculates the tmpdir, so it never returns NULL. */
ffd6ed
 char *
ffd6ed
-guestfs__get_tmpdir (guestfs_h *g)
ffd6ed
+guestfs_impl_get_tmpdir (guestfs_h *g)
ffd6ed
 {
ffd6ed
   const char *str;
ffd6ed
 
ffd6ed
@@ -100,14 +100,14 @@ guestfs__get_tmpdir (guestfs_h *g)
ffd6ed
 }
ffd6ed
 
ffd6ed
 int
ffd6ed
-guestfs__set_cachedir (guestfs_h *g, const char *cachedir)
ffd6ed
+guestfs_impl_set_cachedir (guestfs_h *g, const char *cachedir)
ffd6ed
 {
ffd6ed
   return set_abs_path (g, cachedir, &g->int_cachedir);
ffd6ed
 }
ffd6ed
 
ffd6ed
 /* Note this actually calculates the cachedir, so it never returns NULL. */
ffd6ed
 char *
ffd6ed
-guestfs__get_cachedir (guestfs_h *g)
ffd6ed
+guestfs_impl_get_cachedir (guestfs_h *g)
ffd6ed
 {
ffd6ed
   const char *str;
ffd6ed
 
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed