Blame src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h

Packit Service 87a54e
/* SPDX-License-Identifier: GPL-2.0-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2009 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NMS_IFCFG_RH_WRITER_H__
Packit 5756e2
#define __NMS_IFCFG_RH_WRITER_H__
Packit 5756e2
Packit 5756e2
#include "nm-connection.h"
Packit 5756e2
Packit Service a1bd4f
typedef gboolean (*NMSIfcfgRHWriterAllowFilenameCb)(const char *check_filename,
Packit Service a1bd4f
                                                    gpointer    allow_filename_user_data);
Packit 5756e2
Packit Service a1bd4f
gboolean nms_ifcfg_rh_writer_can_write_connection(NMConnection *connection, GError **error);
Packit 5756e2
Packit Service a1bd4f
gboolean nms_ifcfg_rh_writer_write_connection(NMConnection *                  connection,
Packit Service a1bd4f
                                              const char *                    ifcfg_dir,
Packit Service a1bd4f
                                              const char *                    filename,
Packit Service a1bd4f
                                              NMSIfcfgRHWriterAllowFilenameCb allow_filename_cb,
Packit Service a1bd4f
                                              gpointer       allow_filename_user_data,
Packit Service a1bd4f
                                              char **        out_filename,
Packit Service a1bd4f
                                              NMConnection **out_reread,
Packit Service a1bd4f
                                              gboolean *     out_reread_same,
Packit Service a1bd4f
                                              GError **      error);
Packit 5756e2
Packit 5756e2
#endif /* __NMS_IFCFG_RH_WRITER_H__ */