Sort process_id functions in webui.h, update comment

This commit is contained in:
Turiiya 2023-10-01 11:43:54 +02:00
parent 5b784789ad
commit 61501ee959

View File

@ -471,6 +471,12 @@ WEBUI_EXPORT void webui_delete_all_profiles();
*/
WEBUI_EXPORT void webui_delete_profile(size_t window);
// Get the ID of the parent process (The web browser may create another process for the window)
WEBUI_EXPORT size_t webui_get_parent_process_id(size_t window);
// Get the ID of the child process (The web browser may create another process for the window)
WEBUI_EXPORT size_t webui_get_child_process_id(size_t window);
// -- JavaScript ----------------------
// Run JavaScript without waiting for the response.
@ -500,10 +506,6 @@ WEBUI_EXPORT void webui_return_string(webui_event_t* e, const char* s);
// Return the response to JavaScript as boolean.
WEBUI_EXPORT void webui_return_bool(webui_event_t* e, bool b);
// Get process id (The web browser may create another process for the window)
WEBUI_EXPORT size_t webui_get_child_process_id(size_t window);
WEBUI_EXPORT size_t webui_get_parent_process_id(size_t window);
// -- Wrapper's Interface -------------
// Bind a specific html element click event with a function. Empty element means all events. This replaces `webui_bind()`. The func is (Window, EventType, Element, Data, DataSize, EventNumber).