From 4fc59425b1eb28f3b80b49cf15a672178d964ec8 Mon Sep 17 00:00:00 2001 From: Aggelos Tselios Date: Fri, 2 Dec 2022 18:39:23 +0200 Subject: [PATCH] nvd_save_file_dialog_new: Declare function. --- include/dialogs/nvdialog_file_dialog.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/dialogs/nvdialog_file_dialog.h b/include/dialogs/nvdialog_file_dialog.h index 1f5845f..f746786 100644 --- a/include/dialogs/nvdialog_file_dialog.h +++ b/include/dialogs/nvdialog_file_dialog.h @@ -35,9 +35,18 @@ typedef struct _NvdFileDialog NvdFileDialog; * @note INCOMPLETE FUNCTION - Do not use please. * @returns The filename path on success, otherwise NULL. */ -NvdFileDialog* nvd_open_file_dialog_new(const char *title, - const char *file_extensions); +NvdFileDialog *nvd_open_file_dialog_new(const char *title, + const char *file_extensions); +/** + * @brief Creates a file dialog that can be used to save a file + * into the location chosen by the user. + * @param title The title of the dialog, default is "Save file" + * @param default_filename The default filename to use. + * @return A handle to the dialog for future use. + */ +NvdFileDialog *nvd_save_file_dialog_new(const char *title, + const char *default_filename); /** * @brief Returns a raw location on the filesystem from the dialog given. * @details This function will return the raw location of the dialog (eg. /home/someone/.local/share/)