For now, add the 'Full' suffix to virPidFileAcquirePath and make
virPidFileAcquirePath a 'wrapper' around it.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
# util/virpidfile.h
virPidFileAcquire;
virPidFileAcquirePath;
+virPidFileAcquirePathFull;
virPidFileBuildPath;
virPidFileConstructPath;
virPidFileDelete;
return virPidFileDeletePath(pidfile);
}
-int virPidFileAcquirePath(const char *path,
- bool waitForLock,
- pid_t pid)
+int virPidFileAcquirePathFull(const char *path,
+ bool waitForLock,
+ pid_t pid)
{
int fd = -1;
char pidstr[VIR_INT64_STR_BUFLEN];
}
+int virPidFileAcquirePath(const char *path,
+ bool waitForLock,
+ pid_t pid)
+{
+ return virPidFileAcquirePathFull(path, waitForLock, pid);
+}
+
+
int virPidFileAcquire(const char *dir,
const char *name,
pid_t pid)
const char *name);
+int virPidFileAcquirePathFull(const char *path,
+ bool waitForLock,
+ pid_t pid) G_GNUC_WARN_UNUSED_RESULT;
int virPidFileAcquirePath(const char *path,
bool waitForLock,
pid_t pid) G_GNUC_WARN_UNUSED_RESULT;