C Outline API Function Call Sequence

When you use the Outline API, your program must call some API functions before others. Follow this basic call sequence:

  1. Call EsxInit() before any other API function.

    The API returns an instance handle.

  2. Call EsxLogin() or EsxAutoLogin() to log on to the server.

    The API returns a context handle.

  3. Call EsxOtlOpenOutline() or EsxOtlNewOutline() to open or create an outline.

    The API returns an outline handle.

  4. Call EsxOtlWriteOutline() to write the current outline to the server. EsxOtlVerifyOutline() is called automatically by the API before the outline is saved, unless you call it before this.

  5. Call EsxOtlRestructure() to restructure the database based on the changes made to the outline.

  6. Call EsxUnlockObject() to unlock the outline object if it is locked when the outline is opened.

  7. Call EsxOtlCloseOutline() to free resources associated with the outline.

  8. Call EsxLogout() to log off the server.

    This invalidates the context handle.

  9. Call EsxTerm() to end the session.

    This invalidates the instance handle.