From b3ea32ebab6d59a98b6c20ffb819b2722fe08d47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Letz?= Date: Mon, 10 May 2010 14:25:35 +0200 Subject: [PATCH] Move methods as private. --- common/JackEngine.cpp | 4 ++-- common/JackEngine.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/JackEngine.cpp b/common/JackEngine.cpp index 05fcfdf7..04525f46 100644 --- a/common/JackEngine.cpp +++ b/common/JackEngine.cpp @@ -1021,8 +1021,8 @@ void JackEngine::GetClientNameForUUID(const char *uuid, char *name_res, int *res void JackEngine::ReserveClientName(const char *name, const char *uuid, int *result) { if (ClientCheckName(name)) { - *result = -1; - return; + *result = -1; + return; } EnsureUUID(atoi(uuid)); diff --git a/common/JackEngine.h b/common/JackEngine.h index fdd09a42..301167c4 100644 --- a/common/JackEngine.h +++ b/common/JackEngine.h @@ -81,6 +81,9 @@ class SERVER_EXPORT JackEngine : public JackLockAble void NotifyPortConnect(jack_port_id_t src, jack_port_id_t dst, bool onoff); void NotifyPortRename(jack_port_id_t src, const char* old_name); void NotifyActivate(int refnum); + + int GetNewUUID(); + void EnsureUUID(int uuid); bool CheckClient(int refnum) { @@ -141,8 +144,7 @@ class SERVER_EXPORT JackEngine : public JackLockAble void SessionNotify( int refnum, const char *target, jack_session_event_type_t type, const char *path, JackChannelTransaction *socket ); void SessionReply( int refnum ); - int GetNewUUID(); - void EnsureUUID(int uuid); + void GetUUIDForClientName(const char *client_name, char *uuid_res, int *result); void GetClientNameForUUID(const char *uuid, char *name_res, int *result); void ReserveClientName(const char *name, const char *uuid, int *result); -- 2.11.4.GIT