-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathmisc.h
71 lines (62 loc) · 2.11 KB
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* misc.h */
/*
* This file is part of Clifm
*
* Copyright (C) 2016-2025, L. Abramovich <leo.clifm@outlook.com>
* All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef MISC_H
#define MISC_H
#include "help.h"
__BEGIN_DECLS
int err(const int msg_type, const int prompt_flag, const char *format, ...);
int alias_import(char *file);
void bonus_function(void);
int confirm_sudo_cmd(char **cmd);
int create_usr_var(const char *str);
int expand_prompt_name(char *name);
int filter_function(char *arg);
void free_autocmds(const int keep_temp);
void free_prompts(void);
void free_stuff(void);
int free_remotes(const int exit);
void free_tags(void);
void free_workspaces_filters(void);
char *gen_diff_str(const int diff);
char *get_newname(const char *_prompt, char *old_name, int *quoted);
void get_term_size(void);
int handle_stdin(void);
int is_blank_name(const char *s);
int list_mountpoints(void);
int new_instance(char *, int);
int print_reload_msg(const char *ptr, const char *color, const char *msg, ...);
int pin_directory(char *dir);
void save_last_path(char *last_path_tmp);
void set_eln_color(void);
void set_signals_to_ignore(void);
void set_filter_type(const char c);
void splash(void);
int unpin_dir(void);
void version_function(const int full);
#ifdef LINUX_INOTIFY
void read_inotify(void);
void reset_inotify(void);
#elif defined(BSD_KQUEUE)
void read_kqueue(void);
#endif /* LINUX_INOTIFY */
__END_DECLS
#endif /* MISC_H */