Bookmarks#

Functions#

void omniClientAddBookmark(char const *name, char const *url)

Add a URL to the list of bookmarks.

OmniClientRequestId omniClientListBookmarks(void *userData, OmniClientBookmarkCallback callback)

Register a callback to receive the list of bookmarks.

void omniClientRemoveBookmark(char const *name)

Remove a URL from the list of bookmarks.

Structs#

OmniClientBookmark

A bookmark entry.

Typedefs#

OmniClientBookmarkCallback

This is called with the list of bookmarks.

Functions#

void omniClientAddBookmark(char const *name, char const *url)#

Add a URL to the list of bookmarks.

Parameters:
  • name – The name of the bookmark

  • url – The URL to bookmark

OmniClientRequestId omniClientListBookmarks(
void *userData,
OmniClientBookmarkCallback callback,
)#

Register a callback to receive the list of bookmarks.

The callback is called once with the current list of bookmarks, and again any time the bookmark list is changed (by any application, including this one)

Call omniClientStop with the returned handle to stop receiving updated bookmark lists

Parameters:
  • userData – User data passed to the callback

  • callback – The callback function to register

Returns:

A request ID that can be used with omniClientStop

void omniClientRemoveBookmark(char const *name)#

Remove a URL from the list of bookmarks.

Parameters:

name – The name of the bookmark to remove

Typedefs#

typedef void (*OmniClientBookmarkCallback)(void *userData, struct OmniClientBookmark const *bookmarks, size_t numBookmarks)#

This is called with the list of bookmarks.