diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-10 18:16:16 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-10 18:16:16 -0400 |
commit | 225690a604e73a7f90859370cc5201b599b0e823 (patch) | |
tree | 00b9057ac2064b387efc6f07b5cff231300c9418 /src/libsystemd/sd-id128/id128-util.h | |
parent | ff6514f056098c885323e8629d6ac6d113796f35 (diff) |
./tools/notsd-move
Diffstat (limited to 'src/libsystemd/sd-id128/id128-util.h')
-rw-r--r-- | src/libsystemd/sd-id128/id128-util.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/libsystemd/sd-id128/id128-util.h b/src/libsystemd/sd-id128/id128-util.h deleted file mode 100644 index 6b3855acbb..0000000000 --- a/src/libsystemd/sd-id128/id128-util.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -/*** - This file is part of systemd. - - Copyright 2016 Lennart Poettering - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. -***/ - -#include <stdbool.h> - -#include "sd-id128.h" - -#include "hash-funcs.h" -#include "macro.h" - -char *id128_to_uuid_string(sd_id128_t id, char s[37]); - -/* Like SD_ID128_FORMAT_STR, but formats as UUID, not in plain format */ -#define ID128_UUID_FORMAT_STR "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x" - -bool id128_is_valid(const char *s) _pure_; - -typedef enum Id128Format { - ID128_ANY, - ID128_PLAIN, /* formatted as 32 hex chars as-is */ - ID128_UUID, /* formatted as 36 character uuid string */ - _ID128_FORMAT_MAX, -} Id128Format; - -int id128_read_fd(int fd, Id128Format f, sd_id128_t *ret); -int id128_read(const char *p, Id128Format f, sd_id128_t *ret); - -int id128_write_fd(int fd, Id128Format f, sd_id128_t id, bool do_sync); -int id128_write(const char *p, Id128Format f, sd_id128_t id, bool do_sync); - -void id128_hash_func(const void *p, struct siphash *state); -int id128_compare_func(const void *a, const void *b) _pure_; -extern const struct hash_ops id128_hash_ops; |