~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/io/sys.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SEEN_SYS_H
 
2
#define SEEN_SYS_H
 
3
 
 
4
/*
 
5
 * System abstraction utility routines
 
6
 *
 
7
 * Authors:
 
8
 *   Jon A. Cruz <jon@joncruz.org>
 
9
 *
 
10
 * Copyright (C) 2004-2005 Authors
 
11
 *
 
12
 * Released under GNU GPL, read the file 'COPYING' for more information
 
13
 */
 
14
 
 
15
#include <stdio.h>
 
16
#include <sys/stat.h>
 
17
#include <sys/types.h>
 
18
#include <glib/gtypes.h>
 
19
#include <glib/gdir.h>
 
20
#include <glib/gfileutils.h>
 
21
#include <glibmm/spawn.h>
 
22
#include <string>
 
23
 
 
24
/*#####################
 
25
## U T I L I T Y
 
26
#####################*/
 
27
 
 
28
namespace Inkscape {
 
29
namespace IO {
 
30
 
 
31
void dump_fopen_call( char const *utf8name, char const *id );
 
32
 
 
33
FILE *fopen_utf8name( char const *utf8name, char const *mode );
 
34
 
 
35
int mkdir_utf8name( char const *utf8name );
 
36
 
 
37
int file_open_tmp( std::string& name_used, const std::string& prefix );
 
38
 
 
39
bool file_test( char const *utf8name, GFileTest test );
 
40
 
 
41
GDir *dir_open(gchar const *utf8name, guint flags, GError **error);
 
42
 
 
43
gchar *dir_read_utf8name(GDir *dir);
 
44
 
 
45
gchar* locale_to_utf8_fallback( const gchar *opsysstring,
 
46
                                gssize len,
 
47
                                gsize *bytes_read,
 
48
                                gsize *bytes_written,
 
49
                                GError **error );
 
50
 
 
51
gchar* sanitizeString( gchar const * str );
 
52
 
 
53
void spawn_async_with_pipes (const std::string& working_directory,
 
54
                             const Glib::ArrayHandle<std::string>& argv,
 
55
                             Glib::SpawnFlags flags,
 
56
                             const sigc::slot<void>& child_setup,
 
57
                             Glib::Pid* child_pid,
 
58
                             int* standard_input,
 
59
                             int* standard_output,
 
60
                             int* standard_error);
 
61
 
 
62
}
 
63
}
 
64
 
 
65
 
 
66
#endif // SEEN_SYS_H