1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3 Copyright (C) 2009 Maxim Ermilov <zaspire@rambler.ru>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef _DEBUGGER_SERVER_H_
21 #define _DEBUGGER_SERVER_H_
23 #include <glib-object.h>
27 #define DEBUGGER_TYPE_SERVER (debugger_server_get_type ())
28 #define DEBUGGER_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEBUGGER_TYPE_SERVER, DebuggerServer))
29 #define DEBUGGER_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEBUGGER_TYPE_SERVER, DebuggerServerClass))
30 #define DEBUGGER_IS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEBUGGER_TYPE_SERVER))
31 #define DEBUGGER_IS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEBUGGER_TYPE_SERVER))
32 #define DEBUGGER_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEBUGGER_TYPE_SERVER, DebuggerServerClass))
34 typedef struct _DebuggerServerClass DebuggerServerClass
;
35 typedef struct _DebuggerServer DebuggerServer
;
37 struct _DebuggerServerClass
39 GObjectClass parent_class
;
42 void(* data_arrived
) (DebuggerServer
*self
);
43 void(* error
) (DebuggerServer
*self
, const gchar
* error
);
46 struct _DebuggerServer
48 GObject parent_instance
;
51 GType
debugger_server_get_type (void) G_GNUC_CONST
;
52 DebuggerServer
* debugger_server_new (gint port
);
53 void debugger_server_send_line (DebuggerServer
*object
, const gchar
* line
);
54 void debugger_server_stop (DebuggerServer
*object
);
55 gchar
* debugger_server_get_line (DebuggerServer
*object
);
56 gint
debugger_server_get_line_col (DebuggerServer
*object
);
60 #endif /* _DEBUGGER_SERVER_H_ */