Skip to content

Commit d480e04

Browse files
committed
API: libcrmcommon: Deprecate crm_generate_uuid()
Signed-off-by: Reid Wahl <[email protected]>
1 parent 3de66ee commit d480e04

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

include/crm/common/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ int crm_default_remote_port(void);
4545
int compare_version(const char *version1, const char *version2);
4646

4747
void pcmk_common_cleanup(void);
48-
char *crm_generate_uuid(void);
4948
int crm_user_lookup(const char *name, uid_t * uid, gid_t * gid);
5049
int pcmk_daemon_user(uid_t *uid, gid_t *gid);
5150

include/crm/common/util_compat.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ pcmk_all_flags_set(uint64_t flag_group, uint64_t flags_to_check)
6262
//! \deprecated Do not use
6363
char *crm_md5sum(const char *buffer);
6464

65+
//! \deprecated Do not use
66+
char *crm_generate_uuid(void);
67+
6568
#ifdef __cplusplus
6669
}
6770
#endif

lib/common/utils.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,6 @@ pcmk__generate_uuid(void)
363363
return buffer;
364364
}
365365

366-
char *
367-
crm_generate_uuid(void)
368-
{
369-
return pcmk__generate_uuid();
370-
}
371-
372366
/*!
373367
* \internal
374368
* \brief Sleep for given milliseconds
@@ -522,5 +516,11 @@ crm_is_daemon_name(const char *name)
522516
NULL);
523517
}
524518

519+
char *
520+
crm_generate_uuid(void)
521+
{
522+
return pcmk__generate_uuid();
523+
}
524+
525525
// LCOV_EXCL_STOP
526526
// End deprecated API

0 commit comments

Comments
 (0)