1 /* tools.h
2  * Copyright (C) 2005 Sylvain Cresto <scresto@gmail.com>
3  *
4  * This file is part of graveman!
5  *
6  * graveman! 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 2, or
9  * (at your option) any later version.
10  *
11  * graveman! 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 GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with program; see the file COPYING. If not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19  * MA 02111-1307, USA.
20  *
21  * URL: http://www.nongnu.org/graveman/
22  *
23  */
24 #ifndef _G_TOOLS_H
25 #define _G_TOOLS_H
26 
27 extern char *ltrim(char *Abuf);
28 extern gchar *belleHeure(gchar *Abuf, gchar *Adst);
29 extern gint sc_strcountv(gchar **Aarray);
30 extern void sc_strstripv(gchar **Aarray);
31 extern gpointer get_combo_value(GtkWidget *Acombo);
32 extern gchar *get_combo_value_pos(GtkWidget *Acombo, gint Apos);
33 extern gint get_combo_intvalue(GtkWidget *Acombo);
34 extern gint make_int(gchar *Abuf);
35 extern gshort make_short(gchar *Abuf);
36 extern gchar *sc_realloc_cat(gchar *Asep, gchar *Asrc, gchar *Aplus);
37 extern gchar *format_length(guint64 Alennbr);
38 extern gchar *format_size(guint64 Asize);
39 extern gboolean sc_str_has_casesuffix(gchar *Astr, gchar *Asuffix);
40 extern gchar * sc_strescape (const gchar *source);
41 extern void sc_line_data_copy(GtkTreeModel *Amodel, GtkTreeIter *Aiterde, GtkTreeIter *Aitervers);
42 extern gboolean sc_str_match(gchar *Lpattern, gchar *Lstr);
43 extern void exit_prog(gint Apid, gboolean Aabort, GError **Aerror, gchar *Adefmsg);
44 extern gint sc_mkdir(const gchar *Aname, mode_t Amode);
45 extern gboolean get_only_numerics(gchar *Abuffer, gint Abufsize, gchar *Asource, gchar Aend);
46 extern gdouble get_pourcent(gchar *Atotal, gchar *Aactu);
47 extern gchar *tools_next_no_numeric(gchar *Ade);
48 extern gchar *tools_next_no_char(gchar *Ade, gchar Acar);
49 extern gchar *tools_next_putzero(gchar *Asource, gchar Asrc);
50 extern glong get_2time(gchar *Asource);
51 extern gchar *sc_chomp(gchar *Astr);
52 extern gboolean read_all_output_callback(GIOChannel *Astd, GIOCondition Acond, gpointer Adata);
53 extern gchar *sc_escape(gchar *Abuf, gint Asizemax, gchar *Aescape);
54 
55 #endif
56 
57 /*
58  * vim:et:ts=8:sts=2:sw=2
59  */
60