Rename dbus_internal_do_not_use_get_uuid to _dbus_get_uuid

This was the only remaining symbol using the long prefix. Renaming it
gives us one consistent rule: symbols starting with dbus are public,
symbols starting with _dbus are not.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107349
Reviewed-by: Thiago Macieira <thiago@kde.org>
This commit is contained in:
Simon McVittie 2018-07-23 17:32:27 +01:00
parent a20c5b4d6f
commit 7efc06293a
3 changed files with 9 additions and 9 deletions

View file

@ -80,10 +80,10 @@ return_uuid (DBusGUID *uuid,
* @returns #FALSE if error is set
*/
dbus_bool_t
dbus_internal_do_not_use_get_uuid (const char *filename,
char **uuid_p,
dbus_bool_t create_if_not_found,
DBusError *error)
_dbus_get_uuid (const char *filename,
char **uuid_p,
dbus_bool_t create_if_not_found,
DBusError *error)
{
DBusGUID uuid;

View file

@ -33,10 +33,10 @@
DBUS_BEGIN_DECLS
DBUS_PRIVATE_EXPORT
dbus_bool_t dbus_internal_do_not_use_get_uuid (const char *filename,
char **uuid_p,
dbus_bool_t create_if_not_found,
DBusError *error);
dbus_bool_t _dbus_get_uuid (const char *filename,
char **uuid_p,
dbus_bool_t create_if_not_found,
DBusError *error);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_create_uuid (char **uuid_p,
DBusError *error);

View file

@ -132,7 +132,7 @@ main (int argc, char *argv[])
if (get_uuid || ensure_uuid)
{
char *uuid;
if (dbus_internal_do_not_use_get_uuid (filename, &uuid, ensure_uuid, &error))
if (_dbus_get_uuid (filename, &uuid, ensure_uuid, &error))
{
if (get_uuid) /* print nothing on --ensure */
printf ("%s\n", uuid);