~ubuntu-branches/debian/sid/grip/sid

« back to all changes in this revision

Viewing changes to src/launch.h

  • Committer: Package Import Robot
  • Author(s): Tiago Ilieve
  • Date: 2016-04-04 14:26:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20160404142623-zw16rooy7z3xadvu
Tags: 4.1.0-1
Initial release (Closes: #790611)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* launch.h
2
 
 *
3
 
 * Copyright (c) 1998-2002  Mike Oliphant <oliphant@gtk.org>
4
 
 *
5
 
 *   http://www.nostatic.org/grip
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or 
8
 
 * modify it under the terms of the GNU General Public License as 
9
 
 * published by the Free Software Foundation; either version 2 of the
10
 
 * License, or (at your option) any later version.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
 
 * USA
21
 
 */
22
 
 
23
 
#ifndef GRIP_LAUNCH_H
24
 
#define GRIP_LAUNCH_H
25
 
 
26
 
/* Options to use when munging strings */
27
 
typedef struct {
28
 
  gboolean no_underscore;
29
 
  gboolean allow_high_bits;
30
 
  gboolean escape;
31
 
  gboolean no_lower_case;
32
 
  char allow_these_chars[256];
33
 
} StrTransPrefs;
34
 
 
35
 
int MakeArgs(char *str,GString **args,int maxargs);
36
 
void TranslateString(char *instr,GString *outstr,
37
 
                     char *(*trans_func)(char,void *,gboolean *),
38
 
                     void *user_data,gboolean do_munge_default,
39
 
                     StrTransPrefs *prefs);
40
 
char *ReallocStrcat(char *dest, const char *src);
41
 
char *MungeString(char *str,StrTransPrefs *prefs);
42
 
int MakeTranslatedArgs(char *str,GString **args,int maxargs,
43
 
                       char *(*trans_func)(char,void *,gboolean *),
44
 
                       void *user_data,gboolean do_munge_default,
45
 
                       StrTransPrefs *prefs);
46
 
/*
47
 
void ArgsToLocale(GString **args);
48
 
*/
49
 
void TranslateAndLaunch(char *cmd,char *(*trans_func)(char,void *,gboolean *),
50
 
                        void *user_data,gboolean do_munge_default,
51
 
                        StrTransPrefs *prefs,void (*close_func)(void *),
52
 
                        void *close_user_data);
53
 
 
54
 
#endif /* ifndef GRIP_LAUNCH_H */