Acces to SLAPI objects from ruby C extension

Regarding to:

It is possible to use SLAPI objects (eg. SUEntityRef) in ruby C extension.

But, can I pass ruby object entity to C function and receive it in C as SUEntityRef?

For example:

Ruby side:

def onElementAdded(entities, entity)
    puts SUEX_Test::hello_world(entity)

C side:

 VALUE hello_world(VALUE c, VALUE entity)
    SUEntityRef slapi_entity = entity;

(Moved to SDK category.)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.