From: Hugo Villeneuve Date: Sat, 25 May 2013 23:34:59 +0000 (-0400) Subject: Added GPL license header to all source files X-Git-Tag: v1.0.0~7 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e7ab42f84cca40feb87898e461b2e04df76484ed;p=dockapps%2Fwmnotify.git Added GPL license header to all source files Fixed code formatting issues --- diff --git a/Makefile.am b/Makefile.am index c65afe8..3632cb2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,4 +20,5 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in \ stamp-h.in $(ac_aux_dir)/depcomp \ $(ac_aux_dir)/install-sh $(ac_aux_dir)/missing \ $(ac_aux_dir)/mkinstalldirs $(ac_aux_dir)/config.guess \ - $(ac_aux_dir)/config.sub $(ac_aux_dir)/ltmain.sh + $(ac_aux_dir)/config.sub $(ac_aux_dir)/ltmain.sh \ + $(ac_aux_dir)/compile diff --git a/configure.ac b/configure.ac index 35b441a..e735d81 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# configure.in -- Process this file with autoconf to produce configure. +# configure.ac -- Process this file with autoconf to produce configure. dnl Initialization stuff. AC_INIT(wmnotify, 0.3.2) @@ -28,7 +28,8 @@ dnl Basic CFLAGS values CFLAGS="${CFLAGS} -Wall" dnl Checking for POSIX threads library. -ACX_PTHREAD(CC="${PTHREAD_CC}", , echo "Can't find POSIX threads library"; exit 1 ) +ACX_PTHREAD([CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LDFLAGS="$PTHREAD_LIBS $LDFLAGS" CC="$PTHREAD_CC"], + [AC_MSG_ERROR([POSIX thread support required])]) dnl Trying to locate the X window system's includes and libraries, and sets the dnl variables x_includes and x_libraries to their locations. Also adds the @@ -82,8 +83,8 @@ else AC_MSG_RESULT(no) fi -CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${SNDFILE_CFLAGS} ${OPENSSL_CFLAGS}" -LIBS="${PTHREAD_LIBS} ${SNDFILE_LIBS} ${OPENSSL_LIBS} ${LIBS}" +CFLAGS="${CFLAGS} ${SNDFILE_CFLAGS} ${OPENSSL_CFLAGS}" +LIBS="${SNDFILE_LIBS} ${OPENSSL_LIBS} ${LIBS}" AC_SUBST(CFLAGS) AC_SUBST(LIBS) diff --git a/src/common.h b/src/common.h index e8ee901..a460d27 100644 --- a/src/common.h +++ b/src/common.h @@ -1,4 +1,22 @@ -/* common.h */ +/* + * common.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef COMMON_H #define COMMON_H 1 diff --git a/src/configfile.c b/src/configfile.c index 604080c..6962e7d 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -1,6 +1,22 @@ -/* configfile.c -- Parsing the configuration file - Copyright (C) 2003 Hugo Villeneuve */ - +/* + * configfile.c -- Parsing the configuration file + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" diff --git a/src/configfile.h b/src/configfile.h index 595a3d4..4fca101 100644 --- a/src/configfile.h +++ b/src/configfile.h @@ -1,11 +1,27 @@ -/* configfile.h */ +/* + * configfile.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef CONFIGFILE_H #define CONFIGFILE_H 1 - void ConfigurationFileInit( void ); - #endif /* CONFIGFILE_H */ diff --git a/src/dockapp.c b/src/dockapp.c index c4c98f5..5cdbefa 100644 --- a/src/dockapp.c +++ b/src/dockapp.c @@ -1,5 +1,22 @@ -/* dockapp.c -- routines for managing dockapp windows and icons. */ - +/* + * dockapp.c -- routines for managing dockapp windows and icons. + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ /* Define filename_M */ #define DOCKAPP_M 1 diff --git a/src/dockapp.h b/src/dockapp.h index 39fde8c..32c44ae 100644 --- a/src/dockapp.h +++ b/src/dockapp.h @@ -1,12 +1,28 @@ -/* dockapp.h */ +/* + * dockapp.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef DOCKAPP_H #define DOCKAPP_H 1 - #include - typedef struct XpmIcon { XpmAttributes attributes; @@ -28,7 +44,6 @@ typedef struct dockapp_t XpmIcon xpm_icon; } dockapp_t; - void InitDockAppWindow( int argc, char *argv[], char *pixmap_data[], char *display_arg, char *geometry_arg ); @@ -39,7 +54,6 @@ RedrawWindow( void ); void copyXPMArea( int x, int y, unsigned int sx, unsigned int sy, int dx, int dy ); - /* Exported variables */ #undef _SCOPE_ #ifdef DOCKAPP_M @@ -50,5 +64,4 @@ copyXPMArea( int x, int y, unsigned int sx, unsigned int sy, int dx, int dy ); _SCOPE_ dockapp_t dockapp; - #endif /* DOCKAPP_H */ diff --git a/src/imap.c b/src/imap.c index 03837c5..1078328 100644 --- a/src/imap.c +++ b/src/imap.c @@ -1,5 +1,22 @@ -/* imap.c -- Routines for communication with an IMAP server */ - +/* + * imap.c -- Routines for communication with an IMAP server + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ /* Define filename_M */ #define IMAP_M 1 diff --git a/src/imap.h b/src/imap.h index e759456..9308d34 100644 --- a/src/imap.h +++ b/src/imap.h @@ -1,9 +1,26 @@ -/* imap.h */ +/* + * imap.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef IMAP_H #define IMAP_H 1 - /* Exported variables */ #undef _SCOPE_ #ifdef IMAP_M @@ -12,9 +29,7 @@ # define _SCOPE_ extern #endif - int IMAP4_CheckForNewMail( void ); - #endif /* IMAP_H */ diff --git a/src/network.c b/src/network.c index 0863cd8..e264205 100644 --- a/src/network.c +++ b/src/network.c @@ -1,5 +1,22 @@ -/* network.c -- common routines for POP3 and IMAP protocols */ - +/* + * network.c -- common routines for POP3 and IMAP protocols + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ /* Define filename_M */ #define NETWORK_M 1 diff --git a/src/network.h b/src/network.h index 286b4dd..f1fdc1b 100644 --- a/src/network.h +++ b/src/network.h @@ -1,4 +1,22 @@ -/* network.h */ +/* + * network.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef NETWORK_H #define NETWORK_H 1 @@ -12,12 +30,10 @@ #include #include - /* POP3 responses may be up to 512 characters long, including the terminating CRLF. IMAP4 responses can be more than 1024 characters. */ #define WMNOTIFY_BUFSIZE 10240 - int SocketOpen( char *server_name, int port ); @@ -33,5 +49,4 @@ WmnotifySendData( char *buffer, int size ); int WmnotifyGetResponse( char *buffer, int max_size ); - #endif /* NETWORK_H */ diff --git a/src/options.c b/src/options.c index 58bd08b..d56f2ba 100644 --- a/src/options.c +++ b/src/options.c @@ -1,6 +1,22 @@ -/* options.c -- functions for processing command-line options and arguments - Copyright (C) 2003 Hugo Villeneuve */ - +/* + * options.c -- functions for processing command-line options and arguments + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" diff --git a/src/options.h b/src/options.h index 88026aa..94def52 100644 --- a/src/options.h +++ b/src/options.h @@ -1,11 +1,27 @@ -/* options.h */ +/* + * options.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef OPTIONS_H #define OPTIONS_H 1 - void ParseCommandLineOptions( int argc, char *argv[] ); - #endif /* OPTIONS_H */ diff --git a/src/pop3.c b/src/pop3.c index eed0f09..373897d 100644 --- a/src/pop3.c +++ b/src/pop3.c @@ -1,5 +1,22 @@ -/* pop3.c -- Routines for communication with a pop3 server */ - +/* + * pop3.c -- Routines for communication with a pop3 server + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ /* Define filename_M */ #define POP3_M 1 diff --git a/src/pop3.h b/src/pop3.h index a617f1a..996d611 100644 --- a/src/pop3.h +++ b/src/pop3.h @@ -1,4 +1,22 @@ -/* pop3.h */ +/* + * pop3.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef POP3_H #define POP3_H 1 @@ -12,7 +30,6 @@ #include #include - /* Exported variables */ #undef _SCOPE_ #ifdef POP3_M @@ -21,7 +38,6 @@ # define _SCOPE_ extern #endif - #define POP3_ENDL "\r\n" /* CRLF */ #define POP3_CMD_USERNAME "USER" @@ -32,9 +48,7 @@ #define POP3_RSP_SUCCESS "+OK" #define POP3_RSP_FAILURE "-ERR" - int POP3_CheckForNewMail( void ); - #endif /* POP3_H */ diff --git a/src/sound.c b/src/sound.c index c7037df..ff0f05b 100644 --- a/src/sound.c +++ b/src/sound.c @@ -1,7 +1,23 @@ -/* sound.c */ - -/* Plays sound from file. Based on the 'sndfile-play' demo program from 'libsndfile' */ - +/* + * sound.c -- Plays sound from file. + * + * Copyright (C) 2003 Hugo Villeneuve + * Based on the 'sndfile-play' demo program from 'libsndfile' + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" diff --git a/src/sound.h b/src/sound.h index cd5866c..84a7304 100644 --- a/src/sound.h +++ b/src/sound.h @@ -1,12 +1,27 @@ -/* sound.h */ - +/* + * sound.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef SOUND_H #define SOUND_H 1 - void -PlayAudioFile( char *filename, int volume ); - +PlayAudioFile(char *filename, int volume); #endif /* SOUND_H */ diff --git a/src/ssl.c b/src/ssl.c index 6df0b23..76aa32d 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1,7 +1,23 @@ -/* ssl.c */ - -/* Based on ssl_client.c (Sean Walton and Macmillan Publishers). */ - +/* + * ssl.c + * + * Copyright (C) 2003 Hugo Villeneuve + * Based on ssl_client.c (Sean Walton and Macmillan Publishers). + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" diff --git a/src/ssl.h b/src/ssl.h index df562b2..e9552a7 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -1,9 +1,26 @@ -/* ssl.h */ +/* + * ssl.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef SSL_H #define SSL_H 1 - #if HAVE_CONFIG_H # include "config.h" #endif @@ -13,7 +30,6 @@ #include #include - /* Exported variables */ #undef _SCOPE_ #ifdef SSL_M @@ -24,16 +40,13 @@ #define FAIL -1 - typedef struct ssl_infos_t { SSL_CTX *ctx; SSL *ssl; } ssl_infos_t; - _SCOPE_ ssl_infos_t ssl_infos; - SSL_CTX * InitCTX( void ); @@ -43,7 +56,6 @@ ShowCerts( SSL *ssl ); int InitSSL( int sock_fd ); - #endif /* HAVE_SSL */ #endif /* SSL_H */ diff --git a/src/wmnotify.c b/src/wmnotify.c index 9064ab6..b2c7b27 100644 --- a/src/wmnotify.c +++ b/src/wmnotify.c @@ -1,7 +1,23 @@ -/* wmnotify.c -- POP3 E-mail notification program - Copyright (C) 2003 Hugo Villeneuve (hugo@hugovil.com) - based on WMPop3 by Scott Holden (scotth@thezone.net) */ - +/* + * wmnotify.c -- POP3 E-mail notification program + * + * Copyright (C) 2003 Hugo Villeneuve (hugo@hugovil.com) + * based on WMPop3 by Scott Holden (scotth@thezone.net) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ /* Define filename_M */ #define WMNOTIFY_M 1 diff --git a/src/wmnotify.h b/src/wmnotify.h index 66d8e0e..763987c 100644 --- a/src/wmnotify.h +++ b/src/wmnotify.h @@ -1,11 +1,26 @@ -/* wmnotify.h */ - +/* + * wmnotify.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef WMNOTIFY_H #define WMNOTIFY_H 1 - - #define POP3_PROTOCOL 0 #define IMAP4_PROTOCOL 1 @@ -66,7 +81,6 @@ typedef struct wmnotify_t int sock_fd; } wmnotify_t; - /* Exported variables */ #undef _SCOPE_ #ifdef WMNOTIFY_M @@ -77,5 +91,4 @@ typedef struct wmnotify_t _SCOPE_ wmnotify_t wmnotify_infos; - #endif /* WMNOTIFY_H */ diff --git a/src/xevents.c b/src/xevents.c index 273bed3..976aaad 100644 --- a/src/xevents.c +++ b/src/xevents.c @@ -1,6 +1,23 @@ -/* xevents.c -- handling X events, and detecting single-click and double-click - * mouse events. */ - +/* + * xevents.c -- handling X events, and detecting single-click and double-click + * mouse events. + * + * Copyright (C) 2009 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" diff --git a/src/xevents.h b/src/xevents.h index 2562395..9159b7d 100644 --- a/src/xevents.h +++ b/src/xevents.h @@ -1,19 +1,34 @@ -/* xevents.h */ +/* + * xevents.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef XEVENTS_H #define XEVENTS_H 1 - void -AudibleBeep( void ); +AudibleBeep(void); void -ProcessXlibEventsInit( void (*single_click_callback)( void ), - void (*double_click_callback)( void ) ); +ProcessXlibEventsInit(void (*single_click_callback)(void), + void (*double_click_callback)(void)); void -ProcessXlibEvents( void ); - +ProcessXlibEvents(void); #endif /* XEVENTS_H */ -