sourceview: Completely get rid of GtkSourceSearchFlags
[anjuta.git] / plugins / js-debugger / debugger-server.h
blob874a44ba08b1d7d7782b6df3c6c03c071e8f4ddb
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
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>
25 G_BEGIN_DECLS
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;
41 /* Signals */
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);
58 G_END_DECLS
60 #endif /* _DEBUGGER_SERVER_H_ */