diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-02 17:22:34 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-02 17:22:34 +0100 |
commit | 2744d848964e0983be6a90be92e50bb110215b26 (patch) | |
tree | cf8dd5a73cdd6504d1cfd9fd286dd5233a6ee0cd /liblogdiag/ld-diagram.c | |
parent | 539f5378462670d10ea6500a7980f3a7f84fe0d5 (diff) | |
download | logdiag-2744d848964e0983be6a90be92e50bb110215b26.tar.gz logdiag-2744d848964e0983be6a90be92e50bb110215b26.tar.xz logdiag-2744d848964e0983be6a90be92e50bb110215b26.zip |
Introduce LdDiagramConnection.
Diffstat (limited to 'liblogdiag/ld-diagram.c')
-rw-r--r-- | liblogdiag/ld-diagram.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/liblogdiag/ld-diagram.c b/liblogdiag/ld-diagram.c index ba20762..18a0993 100644 --- a/liblogdiag/ld-diagram.c +++ b/liblogdiag/ld-diagram.c @@ -525,6 +525,8 @@ deserialize_object (JsonObject *object_storage) type = json_node_get_string (object_type_node); if (!g_strcmp0 ("symbol", type)) return LD_DIAGRAM_OBJECT (ld_diagram_symbol_new (object_storage)); + if (!g_strcmp0 ("connection", type)) + return LD_DIAGRAM_OBJECT (ld_diagram_connection_new (object_storage)); deserialize_object_default: /* Anything we can't identify is just an indefinite object. */ @@ -576,6 +578,8 @@ get_object_class_string (GType type) { if (type == LD_TYPE_DIAGRAM_SYMBOL) return "symbol"; + if (type == LD_TYPE_DIAGRAM_CONNECTION) + return "connection"; if (type != LD_TYPE_DIAGRAM_OBJECT) /* We don't know our own type, that's just plain wrong. */ g_warn_if_reached (); |