Updated Makefile.am files after make -f git.mk
[anjuta.git] / plugins / debug-manager / queue.h
blob7fb7bd1df4582faeacaf7b05bcd932cbd09b6ae4
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 queue.h
4 Copyright (C) 2005 Sébastien Granjoux
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef QUEUE_H
22 #define QUEUE_H
24 /*---------------------------------------------------------------------------*/
26 #include "plugin.h"
28 #include "command.h"
30 #include <libanjuta/anjuta-plugin.h>
31 #include <libanjuta/interfaces/ianjuta-debugger.h>
32 #include <libanjuta/interfaces/ianjuta-debugger-breakpoint.h>
34 #include <glib.h>
36 typedef enum
38 HAS_BREAKPOINT = 1 << 1,
39 HAS_ADDRESS_BREAKPOINT = IANJUTA_DEBUGGER_BREAKPOINT_SET_AT_ADDRESS * HAS_BREAKPOINT * 2,
40 HAS_FUNCTION_BREAKPOINT = IANJUTA_DEBUGGER_BREAKPOINT_SET_AT_FUNCTION * HAS_BREAKPOINT * 2,
41 HAS_ENABLE_BREAKPOINT = IANJUTA_DEBUGGER_BREAKPOINT_ENABLE * HAS_BREAKPOINT * 2,
42 HAS_IGNORE_BREAKPOINT = IANJUTA_DEBUGGER_BREAKPOINT_IGNORE * HAS_BREAKPOINT * 2,
43 HAS_CONDITION_BREAKPOINT = IANJUTA_DEBUGGER_BREAKPOINT_CONDITION * HAS_BREAKPOINT * 2,
44 HAS_VARIABLE = 1 << 8,
45 HAS_REGISTER = 1 << 9,
46 HAS_MEMORY = 1 << 10,
47 HAS_INSTRUCTION = 1 << 11
49 } DmaDebuggerCapability;
51 typedef struct _DmaDebuggerQueueClass DmaDebuggerQueueClass;
53 #define DMA_DEBUGGER_QUEUE_TYPE (dma_debugger_queue_get_type ())
54 #define DMA_DEBUGGER_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DMA_DEBUGGER_QUEUE_TYPE, DmaDebuggerQueue))
55 #define DMA_DEBUGGER_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DMA_DEBUGGER_QUEUE_TYPE, DmaDebuggerQueueClass))
56 #define IS_DMA_DEBUGGER_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DMA_DEBUGGER_QUEUE_TYPE))
57 #define IS_DMA_DEBUGGER_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DMA_DEBUGGER_QUEUE_TYPE))
59 GType dma_debugger_queue_get_type (void);
61 DmaDebuggerQueue *dma_debugger_queue_new (AnjutaPlugin *plugin);
62 void dma_debugger_queue_free (DmaDebuggerQueue *this);
64 gboolean dma_debugger_queue_append (DmaDebuggerQueue *self, DmaQueueCommand *cmd);
66 gboolean dma_debugger_queue_start (DmaDebuggerQueue *self, const gchar *mime_type);
67 void dma_debugger_queue_stop (DmaDebuggerQueue *self);
68 void dma_debugger_queue_enable_log (DmaDebuggerQueue *self, IAnjutaMessageView *log);
69 void dma_debugger_queue_disable_log (DmaDebuggerQueue *self);
70 gboolean dma_debugger_queue_is_supported (DmaDebuggerQueue *self, DmaDebuggerCapability capability);
72 IAnjutaDebuggerState dma_debugger_queue_get_state (DmaDebuggerQueue *self);
74 void dma_debugger_queue_command_callback (const gpointer data, gpointer user_data, GError* err);
76 #endif