summary refs log tree commit diff
path: root/src/settings/plugins/keyfile/nms-keyfile-utils.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2021-02-11 18:11:46 +0100
committerMichael Biebl <biebl@debian.org>2021-02-11 18:11:46 +0100
commit80ec1decc49c72efec2a8b87c06245c92c0ab807 (patch)
treee3b229aa94e8dcf0590f2317664176e7b8f7607b /src/settings/plugins/keyfile/nms-keyfile-utils.h
parent65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (diff)
New upstream version 1.29.90 upstream/1.29.90
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-utils.h')
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-utils.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-utils.h b/src/settings/plugins/keyfile/nms-keyfile-utils.h
deleted file mode 100644
index 4b5b4bb5..00000000
--- a/src/settings/plugins/keyfile/nms-keyfile-utils.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2010 - 2018 Red Hat, Inc.
- */
-
-#ifndef __NMS_KEYFILE_UTILS_H__
-#define __NMS_KEYFILE_UTILS_H__
-
-#include "NetworkManagerUtils.h"
-
-typedef enum {
-    NMS_KEYFILE_FILETYPE_KEYFILE,
-    NMS_KEYFILE_FILETYPE_NMMETA,
-} NMSKeyfileFiletype;
-
-typedef enum {
-    NMS_KEYFILE_STORAGE_TYPE_RUN      = 1, /* read-write, runtime only, e.g. /run */
-    NMS_KEYFILE_STORAGE_TYPE_ETC      = 2, /* read-write, persistent,   e.g. /etc     */
-    NMS_KEYFILE_STORAGE_TYPE_LIB_BASE = 3, /* read-only,                e.g. /usr/lib */
-
-    _NMS_KEYFILE_STORAGE_TYPE_LIB_LAST = 1000,
-} NMSKeyfileStorageType;
-
-static inline NMSKeyfileStorageType
-NMS_KEYFILE_STORAGE_TYPE_LIB(guint run_idx)
-{
-    nm_assert(run_idx <= (_NMS_KEYFILE_STORAGE_TYPE_LIB_LAST - NMS_KEYFILE_STORAGE_TYPE_LIB_BASE));
-    return NMS_KEYFILE_STORAGE_TYPE_LIB_BASE + run_idx;
-}
-
-/*****************************************************************************/
-
-const char *nms_keyfile_nmmeta_check_filename(const char *filename, guint *out_uuid_len);
-
-char *nms_keyfile_nmmeta_filename(const char *dirname, const char *uuid, gboolean temporary);
-
-gboolean nms_keyfile_nmmeta_read(const char * dirname,
-                                 const char * filename,
-                                 char **      out_full_filename,
-                                 char **      out_uuid,
-                                 char **      out_loaded_path,
-                                 char **      out_shadowed_storage,
-                                 struct stat *out_st);
-
-gboolean nms_keyfile_nmmeta_read_from_file(const char *full_filename,
-                                           char **     out_dirname,
-                                           char **     out_filename,
-                                           char **     out_uuid,
-                                           char **     out_loaded_path,
-                                           char **     out_shadowed_storage);
-
-int nms_keyfile_nmmeta_write(const char *dirname,
-                             const char *uuid,
-                             const char *loaded_path,
-                             gboolean    loaded_path_allow_relative,
-                             const char *shadowed_storage,
-                             char **     out_full_filename);
-
-/*****************************************************************************/
-
-struct stat;
-gboolean nms_keyfile_utils_check_file_permissions_stat(NMSKeyfileFiletype filetype,
-                                                       const struct stat *st,
-                                                       GError **          error);
-
-gboolean nms_keyfile_utils_check_file_permissions(NMSKeyfileFiletype filetype,
-                                                  const char *       filename,
-                                                  struct stat *      out_st,
-                                                  GError **          error);
-
-#endif /* __NMS_KEYFILE_UTILS_H__ */