~tintou/pantheon-files/gtk-module

« back to all changes in this revision

Viewing changes to libcore/marlin-vala.h

  • Committer: xapantu
  • Date: 2011-05-07 19:35:56 UTC
  • mto: This revision was merged to the branch mainline in revision 288.
  • Revision ID: xapantu@gmail.com-20110507193556-511mtzymkkldj4sv
libmarlin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* marlin-vala.h generated by valac 0.12.0, the Vala compiler, do not modify */
 
2
 
 
3
 
 
4
#ifndef __MARLIN_VALA_H__
 
5
#define __MARLIN_VALA_H__
 
6
 
 
7
#include <glib.h>
 
8
#include <glib-object.h>
 
9
#include <stdlib.h>
 
10
#include <string.h>
 
11
 
 
12
G_BEGIN_DECLS
 
13
 
 
14
 
 
15
#define TYPE_LOG (log_get_type ())
 
16
#define LOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LOG, Log))
 
17
#define LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LOG, LogClass))
 
18
#define IS_LOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LOG))
 
19
#define IS_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LOG))
 
20
#define LOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LOG, LogClass))
 
21
 
 
22
typedef struct _Log Log;
 
23
typedef struct _LogClass LogClass;
 
24
typedef struct _LogPrivate LogPrivate;
 
25
 
 
26
#define LOG_TYPE_LEVEL (log_level_get_type ())
 
27
 
 
28
#define LOG_TYPE_COLOR (log_color_get_type ())
 
29
 
 
30
struct _Log {
 
31
        GObject parent_instance;
 
32
        LogPrivate * priv;
 
33
};
 
34
 
 
35
struct _LogClass {
 
36
        GObjectClass parent_class;
 
37
};
 
38
 
 
39
typedef enum  {
 
40
        LOG_LEVEL_FATAL,
 
41
        LOG_LEVEL_ERROR,
 
42
        LOG_LEVEL_WARN,
 
43
        LOG_LEVEL_NOTIFY,
 
44
        LOG_LEVEL_INFO,
 
45
        LOG_LEVEL_DEBUG,
 
46
        LOG_LEVEL_UNDEFINED
 
47
} LogLevel;
 
48
 
 
49
typedef enum  {
 
50
        LOG_COLOR_Black,
 
51
        LOG_COLOR_DarkRed,
 
52
        LOG_COLOR_DarkGreen,
 
53
        LOG_COLOR_DarkYellow,
 
54
        LOG_COLOR_DarkBlue,
 
55
        LOG_COLOR_DarkMagenta,
 
56
        LOG_COLOR_DarkCyan,
 
57
        LOG_COLOR_Gray,
 
58
        LOG_COLOR_DarkGray,
 
59
        LOG_COLOR_Red,
 
60
        LOG_COLOR_Green,
 
61
        LOG_COLOR_Yellow,
 
62
        LOG_COLOR_Blue,
 
63
        LOG_COLOR_Magenta,
 
64
        LOG_COLOR_Cyan,
 
65
        LOG_COLOR_White,
 
66
        LOG_COLOR_Reset
 
67
} LogColor;
 
68
 
 
69
 
 
70
GType log_get_type (void) G_GNUC_CONST;
 
71
GType log_level_get_type (void) G_GNUC_CONST;
 
72
GType log_color_get_type (void) G_GNUC_CONST;
 
73
extern LogLevel log_level;
 
74
void log_printf (LogLevel lvl, const gchar* str, ...);
 
75
void log_println (LogLevel lvl, const gchar* str, ...);
 
76
void log_quick (const gchar* str, ...);
 
77
void log_prelude (LogLevel level);
 
78
Log* log_new (void);
 
79
Log* log_construct (GType object_type);
 
80
void truc (void);
 
81
 
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif