"Fossies" - the Fresh Open Source Software Archive

Member "fdupes-2.1.2/ncurses-commands.h" (12 Aug 2020, 4366 Bytes) of package /linux/privat/fdupes-2.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ncurses-commands.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.1.0.

    1 /* FDUPES Copyright (c) 2018 Adrian Lopez
    2 
    3    Permission is hereby granted, free of charge, to any person
    4    obtaining a copy of this software and associated documentation files
    5    (the "Software"), to deal in the Software without restriction,
    6    including without limitation the rights to use, copy, modify, merge,
    7    publish, distribute, sublicense, and/or sell copies of the Software,
    8    and to permit persons to whom the Software is furnished to do so,
    9    subject to the following conditions:
   10 
   11    The above copyright notice and this permission notice shall be
   12    included in all copies or substantial portions of the Software.
   13 
   14    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
   15    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
   16    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
   17    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
   18    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
   19    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
   20    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
   21 
   22 #ifndef NCURSESCOMMANDS_H
   23 #define NCURSESCOMMANDS_H
   24 
   25 #include "commandidentifier.h"
   26 #include "filegroup.h"
   27 
   28 /* command IDs */
   29 #define COMMAND_SELECT_CONTAINING 1
   30 #define COMMAND_SELECT_BEGINNING 2
   31 #define COMMAND_SELECT_ENDING 3
   32 #define COMMAND_SELECT_MATCHING 4
   33 #define COMMAND_CLEAR_SELECTIONS_CONTAINING 5
   34 #define COMMAND_CLEAR_SELECTIONS_BEGINNING 6
   35 #define COMMAND_CLEAR_SELECTIONS_ENDING 7
   36 #define COMMAND_CLEAR_SELECTIONS_MATCHING 8
   37 #define COMMAND_CLEAR_ALL_SELECTIONS 9
   38 #define COMMAND_INVERT_GROUP_SELECTIONS 10
   39 #define COMMAND_KEEP_SELECTED 11
   40 #define COMMAND_DELETE_SELECTED 12
   41 #define COMMAND_RESET_SELECTED 13
   42 #define COMMAND_RESET_GROUP 14
   43 #define COMMAND_PRESERVE_ALL 15
   44 #define COMMAND_EXIT 16
   45 #define COMMAND_HELP 17
   46 #define COMMAND_YES 18
   47 #define COMMAND_NO 19
   48 #define COMMAND_SELECT_REGEX 20
   49 #define COMMAND_CLEAR_SELECTIONS_REGEX 21
   50 #define COMMAND_GOTO_SET 22
   51 #define COMMAND_PRUNE 23
   52 
   53 extern struct command_map command_list[];
   54 extern struct command_map confirmation_keyword_list[];
   55 
   56 struct filegroup;
   57 struct status_text;
   58 
   59 int cmd_select_containing(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   60 int cmd_select_beginning(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   61 int cmd_select_ending(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   62 int cmd_select_matching(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   63 int cmd_select_regex(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   64 int cmd_clear_selections_containing(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   65 int cmd_clear_selections_beginning(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   66 int cmd_clear_selections_ending(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   67 int cmd_clear_selections_matching(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   68 int cmd_clear_selections_regex(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   69 int cmd_clear_all_selections(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   70 int cmd_invert_group_selections(struct filegroup *groups, int groupcount, wchar_t *commandarguments, struct status_text *status);
   71 int cmd_keep_selected(struct filegroup *groups, int groupcount, wchar_t *commandarguments, size_t *deletiontally, struct status_text *status);
   72 int cmd_delete_selected(struct filegroup *groups, int groupcount, wchar_t *commandarguments, size_t *deletiontally, struct status_text *status);
   73 int cmd_reset_selected(struct filegroup *groups, int groupcount, wchar_t *commandarguments, size_t *deletiontally, struct status_text *status);
   74 int cmd_prune(struct filegroup *groups, int groupcount, wchar_t *commandarguments, size_t *deletiontally, int *totalgroups, int *cursorgroup, int *cursorfile, int *topline, char *logfile, WINDOW *filewin, struct status_text *status);;
   75 
   76 #endif