Mercurial > dwindows
diff os2/dw.c @ 2088:94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
Update readme regarding WinToast support and in-source comments regarding the API.
Fix missing "API" calling conventions on OS/2 and Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 05 Jun 2020 16:27:00 +0000 |
parents | 24875681eec5 |
children | cdb94c6fd611 |
line wrap: on
line diff
--- a/os2/dw.c Fri Jun 05 06:00:17 2020 +0000 +++ b/os2/dw.c Fri Jun 05 16:27:00 2020 +0000 @@ -12406,7 +12406,7 @@ * This will create a system notification that will show in the notifaction panel * on supported systems, which may be clicked to perform another task. */ -HWND dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...) +HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...) { return NULL; } @@ -12418,7 +12418,7 @@ * Returns: * DW_ERROR_NONE on success, DW_ERROR_UNKNOWN on error or not supported. */ -int dw_notification_send(HWND notification) +int API dw_notification_send(HWND notification) { return DW_ERROR_UNKNOWN; } @@ -13311,7 +13311,7 @@ * Sets the application ID used by this Dynamic Windows application instance. * Parameters: * appid: A string typically in the form: com.company.division.application - * appguid: A globally unique identifier required on Windows or NULL. + * appname: The application name used on Windows or NULL. * Returns: * DW_ERROR_NONE after successfully setting the application ID. * DW_ERROR_UNKNOWN if unsupported on this system. @@ -13320,9 +13320,10 @@ * This must be called before dw_init(). If dw_init() is called first * it will create a unique ID in the form: org.dbsoft.dwindows.application * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# - * The GUID is only required on Windows, NULL can be passed on other platforms. - */ -int dw_app_id_set(const char *appid, const char *appguid) + * The appname is only required on Windows. If NULL is passed the detected + * application name will be used, but a prettier name may be desired. + */ +int API dw_app_id_set(const char *appid, const char *appname) { return DW_ERROR_UNKNOWN; }