mtapi_cpp_register_action-snippet.h 335 Bytes
Newer Older
Michael Schmid committed
1 2 3 4 5 6 7 8 9
  /* create action */
  embb::mtapi::Action fibonacciAction(
    FIBONACCI_JOB,                     /* action ID, defined by the
                                          application */
    (fibonacciActionFunction)          /* action function */
  );

  /* get job */
  fibonacciJob = embb::mtapi::Job(FIBONACCI_JOB, THIS_DOMAIN_ID);