]> Untitled Git - dockapps/wmnotify.git/commitdiff
Added GPL license header to all source files
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 25 May 2013 23:34:59 +0000 (19:34 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 25 May 2013 23:36:55 +0000 (19:36 -0400)
Fixed code formatting issues

23 files changed:
Makefile.am
configure.ac
src/common.h
src/configfile.c
src/configfile.h
src/dockapp.c
src/dockapp.h
src/imap.c
src/imap.h
src/network.c
src/network.h
src/options.c
src/options.h
src/pop3.c
src/pop3.h
src/sound.c
src/sound.h
src/ssl.c
src/ssl.h
src/wmnotify.c
src/wmnotify.h
src/xevents.c
src/xevents.h

index c65afe88dbae28b9c2dd5867718bc77c401bc30d..3632cb246b8885e0312438c9e0aa0f2161a19025 100644 (file)
@@ -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
index 35b441a19d8318d192fbd5bba992c82d5e05a8aa..e735d81df37b36110764011c2ed4b54a0dfb500d 100644 (file)
@@ -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)
index e8ee9019a5686fd166dfc47b9879f4b0e3b6ddfe..a460d27a405bbcdd8780b04820b84c9002123a35 100644 (file)
@@ -1,4 +1,22 @@
-/* common.h */
+/*
+ * common.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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
index 604080c27af9f1018ec7b0ea2e172763a08207fb..6962e7d090bf72dfa50442f03140b1aa95015b7e 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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"
index 595a3d4d4f862b16cf58986240868b86841b17e1..4fca101113d4b93ecc5b91537655556d6ba4d68d 100644 (file)
@@ -1,11 +1,27 @@
-/* configfile.h */
+/*
+ * configfile.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
index c4c98f50e22a70173807a15d5e93452d9d910971..5cdbefad9780ce8f050594ef6a9d83a98611f61d 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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
index 39fde8c1bab86638a821771181b22e7a6b11c3a6..32c44ae8b4567d2fc355075f64c7e94db933b3e9 100644 (file)
@@ -1,12 +1,28 @@
-/* dockapp.h */
+/*
+ * dockapp.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 <X11/xpm.h>
 
-
 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 */
index 03837c57753b2283ddade4a4cf73cea2e6333a6f..1078328a4fac8d3a4f7890514db06b208e00d888 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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
index e759456632d9d7de099bea657258a776a7140c2a..9308d34bf89b468f5c9e67f1b8df7391f7e7470c 100644 (file)
@@ -1,9 +1,26 @@
-/* imap.h */
+/*
+ * imap.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
index 0863cd847784b3be3643bb01d77e590ae7db866a..e264205525e34ca3432137938cc382be3dcebd25 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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
index 286b4dd1e86715b5ce07d424383ba9cc4a1fc2c9..f1fdc1b7bb1bfa9d0c1dd56b919eb2d831b6586b 100644 (file)
@@ -1,4 +1,22 @@
-/* network.h */
+/*
+ * network.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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
 #include <stdlib.h>
 #include <unistd.h>
 
-
 /* 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 */
index 58bd08b4c2959b481808ba90495f9c886e96adc5..d56f2ba13d7b6e65fc3b7a3ae58305cb39805be1 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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"
index 88026aacc2bd909572caa39f229371be1218b696..94def522faf01ceaee8026074fbe54d0e7b40b5d 100644 (file)
@@ -1,11 +1,27 @@
-/* options.h */
+/*
+ * options.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
index eed0f09c2c7bc29ff0d8a3765091161af00a5e86..373897de30db3b6023a23fe9a48e734def1284ca 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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
index a617f1a61f4c54252300fa093ee0d25d3029b4e5..996d61172705d0cccc038bedead0ce2a12bb6675 100644 (file)
@@ -1,4 +1,22 @@
-/* pop3.h */
+/*
+ * pop3.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 <stdlib.h>
 #include <unistd.h>
 
-
 /* 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 */
index c7037dfa616c51ad5c334d102ee11faa383eb7d2..ff0f05b07763ccf27b5e3ca8fe3fea926d428c69 100644 (file)
@@ -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 <hugo@hugovil.com>
+ * 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"
index cd5866cbb43e648398d318704fb0e938becda284..84a73040cc10130e6624bee62b8f70f58b42d3c6 100644 (file)
@@ -1,12 +1,27 @@
-/* sound.h */
-
+/*
+ * sound.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
index 6df0b23a96b2c7e45aa4f24c7c9b862d94d68b32..76aa32d6f7d18d3b732be968b05cceaae3fe3006 100644 (file)
--- a/src/ssl.c
+++ b/src/ssl.c
@@ -1,7 +1,23 @@
-/* ssl.c */\r
-\r
-/* Based on ssl_client.c (Sean Walton and Macmillan Publishers). */\r
-\r
+/*\r
+ * ssl.c\r
+ *\r
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>\r
+ * Based on ssl_client.c (Sean Walton and Macmillan Publishers).\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 2 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.\r
+ */\r
 \r
 #if HAVE_CONFIG_H\r
 #  include "config.h"\r
index df562b2d31e096218e2dea8155c40f6075be3905..e9552a71122a18022979b9fbf94c335b4ee01960 100644 (file)
--- a/src/ssl.h
+++ b/src/ssl.h
@@ -1,9 +1,26 @@
-/* ssl.h */
+/*
+ * ssl.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 <openssl/ssl.h>
 #include <openssl/err.h>
 
-
 /* Exported variables */
 #undef _SCOPE_
 #ifdef SSL_M
 
 #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 */
index 9064ab62d2e01972e8d7a65803de0b4428103e68..b2c7b272e88c753cb4f180d92136a64ddeb022f1 100644 (file)
@@ -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
index 66d8e0ec5566719a49b4ff02e450873b9bff23d0..763987c8bacc224935add55547fd69891fc94ceb 100644 (file)
@@ -1,11 +1,26 @@
-/* wmnotify.h */
-
+/*
+ * wmnotify.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
index 273bed3ddb95d1c4297380b140fe99bbd7bfd0da..976aaad5e2678951063d5a2f1f22a6f7a80a98f8 100644 (file)
@@ -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 <hugo@hugovil.com>
+ *
+ * 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"
index 25623952569f4b2c7efcc17cad5078080c933b78..9159b7dfd0c74b78534e88361c867750b76ecbf0 100644 (file)
@@ -1,19 +1,34 @@
-/* xevents.h */
+/*
+ * xevents.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * 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 */
-