Diff for /freem/src/mwapi_event.c between versions 1.1.1.1 and 1.4

version 1.1.1.1, 2025/01/19 02:04:04 version 1.4, 2025/04/10 01:24:38
Line 1 Line 1
 /*  /*
  *                            *   *   $Id$
  *                           * *  
  *                          *   *  
  *                     ***************  
  *                      * *       * *  
  *                       *  MUMPS  *  
  *                      * *       * *  
  *                     ***************  
  *                          *   *  
  *                           * *  
  *                            *  
  *  
  *   mwapi_event.c  
  *    mwapi event support   *    mwapi event support
  *   *
  *     *  
  *   Author: Serena Willis <jpw@coherent-logic.com>   *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland   *    Copyright (C) 1998 MUG Deutschland
  *    Copyright (C) 2014, 2020, 2021 Coherent Logic Development LLC   *    Copyright (C) 2014, 2020, 2021, 2025 Coherent Logic Development LLC
  *   *
  *   *
  *   This file is part of FreeM.   *   This file is part of FreeM.
Line 35 Line 23
  *   You should have received a copy of the GNU Affero Public License   *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
    *   $Log$
    *   Revision 1.4  2025/04/10 01:24:38  snw
    *   Remove C++ style comments
    *
    *   Revision 1.3  2025/03/09 19:50:47  snw
    *   Second phase of REUSE compliance and header reformat
    *
    *
    * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
    * SPDX-License-Identifier: AGPL-3.0-or-later
  **/   **/
 #include "config.h"  #include "config.h"
   
Line 65  mwapi_event *mwapi_event_new(char *evcla Line 63  mwapi_event *mwapi_event_new(char *evcla
   
 void mwapi_wire_event(mwapi_event *e, char *entryref)  void mwapi_wire_event(mwapi_event *e, char *entryref)
 {  {
   
     char m_gtk_ev[100];      char m_gtk_ev[100];
   
     if (strcmp (e->evclass, "CLOSE") == 0) strcpy (m_gtk_ev, "destroy");      if (strcmp (e->evclass, "CLOSE") == 0) strcpy (m_gtk_ev, "destroy");
Line 74  void mwapi_wire_event(mwapi_event *e, ch Line 71  void mwapi_wire_event(mwapi_event *e, ch
     NULLPTRCHK(e->entryref,"mwapi_wire_event");      NULLPTRCHK(e->entryref,"mwapi_wire_event");
           
     strcpy (e->entryref, entryref);      strcpy (e->entryref, entryref);
       
     //g_signal_connect (e->window, m_gtk_ev, G_CALLBACK(mwapi_enqueue_event), (gpointer) e);  
   
 }  }
   
 void mwapi_enqueue_event(Widget *widget, void *data)  void mwapi_enqueue_event(Widget *widget, void *data)
Line 89  void mwapi_enqueue_event(Widget *widget, Line 83  void mwapi_enqueue_event(Widget *widget,
           
     e = (mwapi_event *) data;      e = (mwapi_event *) data;
   
     //printf ("mwapi_enqueue_event():  evclass = '%s' window_name = '%s' entryref = '%s'\r\n\r\n", e->evclass, e->window_name, e->entryref);  
   
     t->e = e;      t->e = e;
     t->next = mwapi_event_queue_head;      t->next = mwapi_event_queue_head;
     mwapi_event_queue_head = t;      mwapi_event_queue_head = t;
Line 112  int mwapi_dequeue_events(char *result) Line 104  int mwapi_dequeue_events(char *result)
                   
     }      }
   
     // TODO: delete events      /* TODO: delete events */
     mwapi_event_queue_head = NULL;      mwapi_event_queue_head = NULL;
   
     /* chop off the final comma */      /* chop off the final comma */

Removed from v.1.1.1.1  
changed lines
  Added in v.1.4


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