[dia] More C++ guards, preparing a new plug-in
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] More C++ guards, preparing a new plug-in
- Date: Sat, 10 Sep 2011 13:29:14 +0000 (UTC)
commit 803682112c1b5e3ec8dd96c75c2be7458f584bbe
Author: Hans Breuer <hans breuer org>
Date: Sun Aug 21 19:35:12 2011 +0200
More C++ guards, preparing a new plug-in
app/connectionpoint_ops.h | 5 +++++
app/diagram.h | 5 +++++
app/display.h | 5 +++++
lib/objchange.h | 5 +++++
4 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/app/connectionpoint_ops.h b/app/connectionpoint_ops.h
index 827c7ac..df8c0d2 100644
--- a/app/connectionpoint_ops.h
+++ b/app/connectionpoint_ops.h
@@ -22,6 +22,8 @@
#include "diagram.h"
#include "display.h"
+G_BEGIN_DECLS
+
void object_draw_connectionpoints(DiaObject *obj, DDisplay *ddisp);
void connectionpoint_add_update(ConnectionPoint *conpoint,
Diagram *dia);
@@ -31,4 +33,7 @@ void diagram_update_connections_object(Diagram *dia, DiaObject *obj,
void ddisplay_connect_selected(DDisplay *ddisp);
void diagram_unconnect_selected(Diagram *dia);
+G_END_DECLS
+
#endif /* CONNECTIONPOINT_OPS_H */
+
diff --git a/app/diagram.h b/app/diagram.h
index bf2e066..f5ecd42 100644
--- a/app/diagram.h
+++ b/app/diagram.h
@@ -28,6 +28,8 @@ typedef struct _Diagram Diagram;
#include "menus.h"
#include "diagrid.h"
+G_BEGIN_DECLS
+
GType diagram_get_type (void) G_GNUC_CONST;
#define DIA_TYPE_DIAGRAM (diagram_get_type ())
@@ -141,4 +143,7 @@ void diagram_redraw_all(void);
void diagram_object_modified(Diagram *dia, DiaObject *object);
+G_END_DECLS
+
#endif /* DIAGRAM_H */
+
diff --git a/app/display.h b/app/display.h
index f9dc7e5..871389c 100644
--- a/app/display.h
+++ b/app/display.h
@@ -29,6 +29,8 @@ typedef struct _DDisplay DDisplay;
#include "menus.h"
#include "diarenderer.h"
+G_BEGIN_DECLS
+
/** Defines the pixels per cm, default is 20 pixels = 1 cm */
/** This is close to, but not quite the same as, the physical display size
* in most cases */
@@ -197,4 +199,7 @@ void ddisplay_set_active_focus(DDisplay *ddisp, Focus *focus);
void diagram_add_ddisplay(Diagram *dia, DDisplay *ddisp);
void diagram_remove_ddisplay(Diagram *dia, DDisplay *ddisp);
+G_END_DECLS
+
#endif /* DDISPLAY_H */
+
diff --git a/lib/objchange.h b/lib/objchange.h
index dbf5e91..1ee10af 100644
--- a/lib/objchange.h
+++ b/lib/objchange.h
@@ -22,6 +22,8 @@
#include "diatypes.h"
+G_BEGIN_DECLS
+
typedef void (*ObjectChangeApplyFunc)(ObjectChange *change, DiaObject *obj);
typedef void (*ObjectChangeRevertFunc)(ObjectChange *change, DiaObject *obj);
typedef void (*ObjectChangeFreeFunc)(ObjectChange *change);
@@ -78,4 +80,7 @@ ObjectChange *new_object_state_change(DiaObject *obj,
ObjectChange *change_list_create (void);
void change_list_add (ObjectChange *change_list, ObjectChange *change);
+G_END_DECLS
+
#endif /* OBJCHANGE_H */
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]