Packages

Interfaces Elixir with C/C++ code in a user-friendly way! Based on Erlang-ports. Provides a few Mix-tasks to kickstart the development process.

Current section

Files

Jump to
cure lib cure.ex
Raw

lib/cure.ex

defmodule Cure do
use Application
def start(_type, _args) do
Cure.Supervisor.start_link
end
def load(c_program_name) when c_program_name |> is_binary do
Cure.Supervisor.start_child(c_program_name)
end
def send_data(server, msg, callback \\ nil)
when server |> is_pid
and msg |> is_binary
and (callback |> is_function(1) or nil? callback) do
server |> Cure.Server.send_data(msg, callback)
end
end