2 * Samba Unix/Linux SMB client library
4 * Copyright (C) Christopher Davis 2012
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _REGEDIT_DIALOG_H_
21 #define _REGEDIT_DIALOG_H_
37 struct dialog
*dialog_new(TALLOC_CTX
*ctx
, const char *title
, int nlines
,
38 int ncols
, int y
, int x
);
40 struct dialog
*dialog_center_new(TALLOC_CTX
*ctx
, const char *title
,
41 int nlines
, int ncols
);
43 struct dialog
*dialog_choice_new(TALLOC_CTX
*ctx
, const char *title
,
44 const char **choices
, int nlines
, int ncols
,
47 struct dialog
*dialog_choice_center_new(TALLOC_CTX
*ctx
, const char *title
,
48 const char **choices
, int nlines
,
56 enum dialog_selection
{
61 int dialog_notice(TALLOC_CTX
*ctx
, enum dialog_type type
,
62 const char *title
, const char *msg
, ...);
64 int dialog_input(TALLOC_CTX
*ctx
, char **output
, const char *title
,
65 const char *msg
, ...);
70 WERROR
dialog_edit_value(TALLOC_CTX
*ctx
, struct registry_key
*key
,
71 uint32_t type
, const struct value_item
*vitem
,
74 int dialog_select_type(TALLOC_CTX
*ctx
, int *type
);