Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
EZ_SetDefaultMessageHandler(3)	EZWGL Functions	EZ_SetDefaultMessageHandler(3)

NAME
       EZ_SetDefaultMessageHandler - register the default message handler

SYNOPSIS
       #include	<EZ.h>

       typedef struct {
	 Atom	    messageType;    /* message type   */
	 int	    messageLength;  /* message length */
	 char	    *message;	    /* the message    */
	 int	    messageId;	    /* message Id     */
	 int	    replyId;	    /* if request, the message id to reply */
	 int	    isReply;	    /* flag whether the	message	is a reply */
	 Window	    sender;	    /* sender's	communication window id	 */
	 Atom	    senderClass;    /* sender's	class name */
	 Atom	    senderInstance; /* sender's	instance name */
	 int	    senderIsSelf;   /* is message originated from the myself? */
       } EZ_Message;

       typedef void (*EZ_MessageHandler)(EZ_Message *msgIn, void *client_data);

       void EZ_SetDefaultMessageHandler(EZ_MessageHandler handler, void	*clientData)

ARGUMENTS
       handler	Specifies a message handler.

       client_data  Specifies an application data to be	passed to the handler.

DESCRIPTION
       This  function sets the default message handler for an application. All
       messages	received with no handlers will be handled by this default mes-
       sage handler.

SEE ALSO
       EZ_AddMessageHandler(3),	EZ_BroadcastMessage(3),	EZ_ReplyMessage(3)

EZWGL						EZ_SetDefaultMessageHandler(3)

NAME | SYNOPSIS | ARGUMENTS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=EZ_SetDefaultMessageHandler&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help