+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
/*
* myDtChkpntMsgSend --- Helper function: Send a checkpoint message to the listener
*/
-static myDtChkpntMsgSend(char *message, char *type)
+static int
+myDtChkpntMsgSend(char *message, char *type)
{
static long msgcount = 0; /* Running count of messages */
static int propnum = 0; /* Which property are we using ? */
/*
* _DtPerfChkpntInit --- Initialize the checkpointing mechanism
*/
+int
_DtPerfChkpntInit(Display *display,
Window parentwin,
char *prog_name,
XStringListToTextProperty(array, 1, &text_prop);
XSetWMName(tmpdisplay, dtcp_info.window, &text_prop);
XFree(text_prop.value);
- if (buffer) free(buffer);
+ free(buffer);
}
XCloseDisplay(tmpdisplay);
/*
* _DtPerfChkpntMsgSend --- Send a checkpoint message to the listener
*/
+void
_DtPerfChkpntMsgSend(char *message)
{
myDtChkpntMsgSend(message, DT_PERF_CHKPNT_MSG_CHKPNT);
/*
* myDtPerfChkpntEnd --- End the checkpointing message delivery
*/
-_DtPerfChkpntEnd()
+int
+_DtPerfChkpntEnd(void)
{
myDtChkpntMsgSend("End checkpoint delivery", DT_PERF_CHKPNT_MSG_END);
return(1);