]> rtime.felk.cvut.cz Git - frescor/forb.git/commitdiff
Added a function forb_object_get_executor() in object.h
authorPetr Beneš <petr@petr-nb.(none)>
Tue, 25 Jan 2011 16:10:14 +0000 (17:10 +0100)
committerPetr Beneš <petr@petr-nb.(none)>
Tue, 25 Jan 2011 16:10:14 +0000 (17:10 +0100)
src/object.h

index fd255cc34b20623bfa744ff23fd42550c7172acc..cb0923ba05ca9dd3d145bd0bc1d447d503a93318 100644 (file)
@@ -250,9 +250,23 @@ forb_object_is_remote(forb_object obj)
        return obj && (obj->implementation == NULL);
 }
 
+/**
+ * Determines the executor of a given object
+ *
+ * @param obj Given object.
+ *
+ * @return Pointer to the executor belonging to the object.
+ */
+static inline forb_executor_t *
+forb_object_get_executor(forb_object obj) 
+{
+       return obj->executor;
+}
+
 CORBA_boolean
 forb_object_serialize(FORB_CDR_Codec *codec, const forb_object *obj);
 CORBA_boolean
 forb_object_deserialize(FORB_CDR_Codec *codec, forb_object *obj);
 
+
 #endif