File: lib.h

package info (click to toggle)
xcfa 5.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,300 kB
  • sloc: ansic: 47,148; sh: 4,380; makefile: 136; sed: 16
file content (121 lines) | stat: -rw-r--r-- 4,186 bytes parent folder | download | duplicates (4)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 /*
 * file      : lib/lib.h
 * project   : xcfa
 * with      : Gtk-2
 *
 * copyright : (C) 2003 - 2015 by Claude Bulin
 *
 * xcfa - GTK+ implementation of the GNU shell command
 * GNU General Public License
 *
 *  This file is part of XCFA.
 * 
 * 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
 * OLD ADRESS:
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 * NEW ADRESS:
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 * 
 */

#ifndef libH_h
#define libH_h 1



// /usr/include/gtk-2.0/gdk/gdkkeysyms.h
typedef struct {
	gboolean	BoolVerboseMode;
	gboolean	BoolVersionMode;
	gboolean	BoolHelpMode;
} OPTIONS_COMMAND_LINE;

extern OPTIONS_COMMAND_LINE OptionsCommandLine;

extern GdkColor YellowColor;



// FILE_IS.C
// 
gboolean	FileIs_vidm4a( gchar *namefile );
gboolean	FileIs_m4a( gchar *namefile );
gboolean	FileIs_wavpack (gchar *namefile);
gboolean	FileIs_wav (gchar *namefile);
gboolean	FileIs_shn (gchar *namefile);
gboolean	FileIs_rm (gchar *namefile);
gboolean	FileIs_ogg (gchar *namefile);
gboolean	FileIs_mpc (gchar *namefile);
gboolean	FileIs_ac3 (gchar *namefile);
gboolean	FileIs_mp3 (gchar *namefile);
gboolean	FileIs_flac (gchar *namefile);
gboolean	FileIs_ape (gchar *namefile);
gboolean	FileIs_aiff (gchar *namefile);
gboolean	FileIs_dts (gchar *namefile);
gboolean	FileIs_g_str_has_suffix (gchar *NameSong, gchar *Suffixe);
gboolean	FileIs_png( gchar *namefile );
gboolean	FileIs_jpg( gchar *namefile );
gboolean	FileIs_image( gchar *PathNameFile );

// LIB.C
// 
gchar		*libutils_dup_chomp( gchar *p_str );
gchar		*libutils_chomp( gchar *p_str );
gchar		*libutils_get_prefix (gchar *PathNameFile);
gboolean	libutils_access_mode (gchar *PathNameFile);
gboolean	libutils_test_file_exist (gchar *File);
gboolean	libutils_test_dir_exist (gchar *File);
void		libutils_set_default_icone_to_win (GtkWidget *win);
gboolean	libutils_find_file (gchar *p_find_file);
gchar		*libutils_get_pathname_pixmaps (gchar *p_name_pixmap);
gint		libutils_hexa_to_int (gchar *Ptr_Hexa);
GList		*libutils_remove_glist (GList *New);
GSList		*libutils_remove_gslist (GSList *New);
size_t		libutils_get_size_file (gchar *PathName);
void		libutils_add_datas_on_disk (gchar *data);
gchar		*libutils_get_datas_on_disk (void);
gboolean	libutils_test_write (gchar *path);
GdkPixbuf	*libutils_init_pixbufs (gchar *NameFilePixbuf);
gchar		*libutils_get_pathname_with_new_ext (gchar *PathName, gchar *NewExt);
gboolean	libutils_test_file_with_new_ext_exist (gchar *PathName, gchar *NewExt);
gint		libutils_get_first_line_is_selected( GtkTreeSelection *AdrLine, GtkTreeModel *AdrTreeModel );
gchar		*libutils_get_name_without_ext_with_amp( gchar *p_PathNameFile );
gchar		*libutils_get_name_without_ext( gchar *p_PathNameFile );
gchar		*libutils_create_temporary_rep (gchar *SrcTmp, gchar *NewRepTmp);
gchar		*libutils_remove_temporary_rep (gchar *path_tmprep);
gchar		*libutils_string_toupper( gchar *p_str );

// COMBO.C
// 
void		libcombo_remove_options (GtkComboBox *p_combo);

// UTF8.C
// 
gchar		*utf8_convert_from_utf8 (const char *string);
gchar		*utf8_convert_to_utf8 (const gchar *string);
gchar		*utf8_removediacritics( const gchar *str, gssize len );
gchar		*utf8_eperluette_name( gchar *p_name );

// XDG.C
// 
void		xdg_print_list_config_path( void );
void		xdg_print_list_data_path( void );
gchar		*xdg_search_config_xdg( void );
gchar		*xdg_search_data_xdg( gchar *NameFile );

#endif