comparison mac/dw.m @ 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
comparison
equal deleted inserted replaced
2087:082d743f3214 2088:94ea915bd917
3968 3968
3969 /* 3969 /*
3970 * Sets the application ID used by this Dynamic Windows application instance. 3970 * Sets the application ID used by this Dynamic Windows application instance.
3971 * Parameters: 3971 * Parameters:
3972 * appid: A string typically in the form: com.company.division.application 3972 * appid: A string typically in the form: com.company.division.application
3973 * appguid: A globally unique identifier required on Windows or NULL. 3973 * appname: The application name used on Windows or NULL.
3974 * Returns: 3974 * Returns:
3975 * DW_ERROR_NONE after successfully setting the application ID. 3975 * DW_ERROR_NONE after successfully setting the application ID.
3976 * DW_ERROR_UNKNOWN if unsupported on this system. 3976 * DW_ERROR_UNKNOWN if unsupported on this system.
3977 * DW_ERROR_GENERAL if the application ID is not allowed. 3977 * DW_ERROR_GENERAL if the application ID is not allowed.
3978 * Remarks: 3978 * Remarks:
3979 * This must be called before dw_init(). If dw_init() is called first 3979 * This must be called before dw_init(). If dw_init() is called first
3980 * it will create a unique ID in the form: org.dbsoft.dwindows.application 3980 * it will create a unique ID in the form: org.dbsoft.dwindows.application
3981 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# 3981 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.#
3982 * The GUID is only required on Windows, NULL can be passed on other platforms. 3982 * The appname is only required on Windows. If NULL is passed the detected
3983 */ 3983 * application name will be used, but a prettier name may be desired.
3984 int dw_app_id_set(const char *appid, const char *appguid) 3984 */
3985 int dw_app_id_set(const char *appid, const char *appname)
3985 { 3986 {
3986 strncpy(_dw_app_id, appid, 100); 3987 strncpy(_dw_app_id, appid, 100);
3987 return DW_ERROR_NONE; 3988 return DW_ERROR_NONE;
3988 } 3989 }
3989 3990