Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 866 Bytes

API.md

File metadata and controls

44 lines (30 loc) · 866 Bytes

This API only lists the public interface elements. The library has much more under its hood.

Also, this is in heavy development.

Main API functions

Send a message

/*
 * Send function
 */
void thorium_actor_send(struct thorium_actor *self, int destination, struct thorium_message *message);


/*
 * \return This function returns the name of the spawned actor.
 */
int thorium_actor_spawn(struct thorium_actor *self, int script);


/*
 * Get the current actor name.
 */
int thorium_actor_name(struct thorium_actor *self);

/*
 * Get the concrete actor (as a void *) from the abstract actor (struct thorium_actor *
 */
void *thorium_actor_concrete_actor(struct thorium_actor *self);

API sections

Examples