File:  [Coherent Logic Development] / freem / src / mwapi_event.h
Revision 1.3: download - view: text, annotated - select for diffs
Sun Mar 9 19:50:47 2025 UTC (4 months, 3 weeks ago) by snw
Branches: MAIN
CVS tags: v0-63-1-rc1, v0-63-0-rc1, v0-63-0, v0-62-3, v0-62-2, v0-62-1, v0-62-0, HEAD
Second phase of REUSE compliance and header reformat

    1: /*
    2:  *   $Id: mwapi_event.h,v 1.3 2025/03/09 19:50:47 snw Exp $
    3:  *    mwapi event support
    4:  *
    5:  *  
    6:  *   Author: Serena Willis <snw@coherent-logic.com>
    7:  *    Copyright (C) 1998 MUG Deutschland
    8:  *    Copyright (C) 2014, 2020, 2021, 2025 Coherent Logic Development LLC
    9:  *
   10:  *
   11:  *   This file is part of FreeM.
   12:  *
   13:  *   FreeM is free software: you can redistribute it and/or modify
   14:  *   it under the terms of the GNU Affero Public License as published by
   15:  *   the Free Software Foundation, either version 3 of the License, or
   16:  *   (at your option) any later version.
   17:  *
   18:  *   FreeM is distributed in the hope that it will be useful,
   19:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   20:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21:  *   GNU Affero Public License for more details.
   22:  *
   23:  *   You should have received a copy of the GNU Affero Public License
   24:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   25:  *
   26:  *   $Log: mwapi_event.h,v $
   27:  *   Revision 1.3  2025/03/09 19:50:47  snw
   28:  *   Second phase of REUSE compliance and header reformat
   29:  *
   30:  *
   31:  * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
   32:  * SPDX-License-Identifier: AGPL-3.0-or-later
   33:  **/
   34: 
   35: #include "config.h"
   36: 
   37: #if !defined(__MWAPI_EVENT_H) && defined(HAVE_MWAPI_MOTIF)
   38: # define __MWAPI_EVENT_H
   39: 
   40: #include <Xm/Xm.h>
   41: 
   42: typedef struct mwapi_event {
   43: 
   44:     char *evclass;
   45:     char *window_name;
   46: 
   47:     char *entryref;
   48:     
   49:     Widget *window;
   50:     
   51:     
   52: } mwapi_event;
   53: 
   54: typedef struct mwapi_event_queue_entry {
   55: 
   56:     mwapi_event *e;
   57: 
   58:     struct mwapi_event_queue_entry *next;
   59: 
   60: } mwapi_event_queue_entry;
   61: 
   62: 
   63: extern mwapi_event_queue_entry *mwapi_event_queue_head;
   64: extern short evt_sync_enabled;
   65: 
   66: mwapi_event *mwapi_event_new(char *evclass, char *window_name, Widget *window);
   67: void mwapi_wire_event(mwapi_event *e, char *entryref);
   68: void mwapi_enqueue_event(Widget *widget, void *data);
   69: int mwapi_dequeue_events(char *result);
   70: void mwapi_on_merge_complete(char *window_name);
   71: 
   72: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>