[anjuta/symbol-db-model] symbol-db: Added scan-begin signal to notify engine getting busy
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/symbol-db-model] symbol-db: Added scan-begin signal to notify engine getting busy
- Date: Fri, 19 Mar 2010 13:50:27 +0000 (UTC)
commit 338daec98fd3494e69e0d9135614a4b9d9e914ee
Author: Naba Kumar <naba gnome org>
Date: Fri Mar 19 12:35:05 2010 +0200
symbol-db: Added scan-begin signal to notify engine getting busy
plugins/symbol-db/symbol-db-engine-core.c | 14 ++++++++++++++
plugins/symbol-db/symbol-db-engine-core.h | 1 +
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index e26f955..ebec55d 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -157,6 +157,7 @@ enum
{
DB_CONNECTED,
DB_DISCONNECTED,
+ SCAN_BEGIN,
SINGLE_FILE_SCAN_END,
SCAN_END,
SYMBOL_INSERTED,
@@ -1961,6 +1962,9 @@ sdb_engine_scan_files_1 (SymbolDBEngine * dbe, const GPtrArray * files_list,
sdb_engine_ctags_launcher_create (dbe);
}
+ g_signal_emit_by_name (dbe, "scan-begin",
+ anjuta_launcher_get_child_pid (priv->ctags_launcher));
+
/* create the shared memory file */
if (priv->shared_mem_file == 0)
{
@@ -2751,6 +2755,16 @@ sdb_engine_class_init (SymbolDBEngineClass * klass)
NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+ signals[SCAN_BEGIN]
+ = g_signal_new ("scan-begin",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (SymbolDBEngineClass, scan_begin),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__INT, G_TYPE_NONE,
+ 1,
+ G_TYPE_INT);
+
signals[SINGLE_FILE_SCAN_END]
= g_signal_new ("single-file-scan-end",
G_OBJECT_CLASS_TYPE (object_class),
diff --git a/plugins/symbol-db/symbol-db-engine-core.h b/plugins/symbol-db/symbol-db-engine-core.h
index c24b8db..36ea09d 100644
--- a/plugins/symbol-db/symbol-db-engine-core.h
+++ b/plugins/symbol-db/symbol-db-engine-core.h
@@ -52,6 +52,7 @@ struct _SymbolDBEngineClass
/* signals */
void (* db_connected) ();
void (* db_disconnected) ();
+ void (* scan_begin) (gint process_id);
void (* single_file_scan_end) ();
void (* scan_end) (gint process_id);
void (* symbol_inserted) (gint symbol_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]