loudmouth/inc/lm-misc.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
       
     2 /*
       
     3  * Copyright (C) 2006 Imendio AB
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or
       
     6  * modify it under the terms of the GNU Lesser General Public License as
       
     7  * published by the Free Software Foundation; either version 2 of the
       
     8  * License, or (at your option) any later version.
       
     9  *
       
    10  * This program is distributed in the hope that it will be useful,
       
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13  * Lesser General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU Lesser General Public
       
    16  * License along with this program; if not, write to the
       
    17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    18  * Boston, MA 02111-1307, USA.
       
    19  */
       
    20 
       
    21 #ifndef __LM_MISC_H__
       
    22 #define __LM_MISC_H__
       
    23 
       
    24 #include <glib.h>
       
    25 
       
    26 GSource *          lm_misc_add_io_watch         (GMainContext *context,
       
    27 						 GIOChannel   *chan,
       
    28 						 GIOCondition  condition,
       
    29 						 GIOFunc       function,
       
    30 						 gpointer      data);
       
    31 GSource *          lm_misc_add_idle             (GMainContext *context,
       
    32 						 GSourceFunc   function,
       
    33 						 gpointer      data);
       
    34 GSource *          lm_misc_add_timeout          (GMainContext *context,
       
    35 						 guint         interval,
       
    36 						 GSourceFunc   function,
       
    37 						 gpointer      data);
       
    38 
       
    39 const char *       lm_misc_io_condition_to_str  (GIOCondition    condition);
       
    40 
       
    41 
       
    42 #endif /* __LM_MISC_H__ */
       
    43