core: added getters for lua sink fields.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 14 Jan 2013 11:32:13 +0000 (13:32 +0200)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 14 Jan 2013 14:23:39 +0000 (16:23 +0200)
src/core/lua-decision/element.c
src/core/lua-decision/element.h

index 18ed076..3c8fb2e 100644 (file)
@@ -1198,7 +1198,25 @@ static field_t field_name_to_type(const char *name, size_t len)
     return 0;
 }
 
+const char *mrp_lua_sink_get_interface(mrp_lua_sink_t *s)
+{
+    return s ? s->interface : "";
+}
+
+const char *mrp_lua_sink_get_object(mrp_lua_sink_t *s)
+{
+    return s ? s->object : "";
+}
 
+const char *mrp_lua_sink_get_type(mrp_lua_sink_t *s)
+{
+    return s ? s->type : "";
+}
+
+const char *mrp_lua_sink_get_property(mrp_lua_sink_t *s)
+{
+    return s ? s->property : "";
+}
 
 /*
  * Local Variables:
index e6b1295..5735dbf 100644 (file)
@@ -100,6 +100,11 @@ uint32_t mrp_lua_element_get_unsigned(mrp_lua_element_t *el, int inpidx,
 double mrp_lua_element_get_floating(mrp_lua_element_t *el, int inpidx,
                                    int colidx, int rowidx);
 
+const char *mrp_lua_sink_get_interface(mrp_lua_sink_t *s);
+const char *mrp_lua_sink_get_object(mrp_lua_sink_t *s);
+const char *mrp_lua_sink_get_type(mrp_lua_sink_t *s);
+const char *mrp_lua_sink_get_property(mrp_lua_sink_t *s);
+
 
 #endif  /* __MURPHY_LUA_ELEMENT_H__ */