diff --git a/README.md b/README.md index 4724a38..9683f6c 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,18 @@ following statement: gcc -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c ``` +## License + +Cairo_JPG is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Cairo_JPG 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 Lesser General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Cairo_JPG. If not, see . + diff --git a/src/cairo_jpg.c b/src/cairo_jpg.c index 847f4fb..0435201 100644 --- a/src/cairo_jpg.c +++ b/src/cairo_jpg.c @@ -1,4 +1,23 @@ -/*! This file contains two functions for reading and writing JPEG files from +/* Copyright 2018 Bernhard R. Fischer, 4096R/8E24F29D + * + * This file is part of Cairo_JPG. + * + * Cairo_JPG is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Cairo_JPG 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cairo_JPG. If not, see . + */ + +/*! \file cairo_jpg.c + * This file contains two functions for reading and writing JPEG files from * and to Cairo image surfaces. It uses the functions from the libjpeg. * Most of the code is directly derived from the online example at * http://libjpeg-turbo.virtualgl.org/Documentation/Documentation @@ -16,8 +35,8 @@ * gcc -std=c99 -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c * * @author Bernhard R. Fischer, 4096R/8E24F29D bf@abenteuerland.at - * @version 2018/08/27 - * @license This code is free software. Do whatever you like to do with it. + * @version 2018/12/11 + * @license LGPL3. */ #ifdef HAVE_CONFIG_H diff --git a/src/cairo_jpg.h b/src/cairo_jpg.h index b78efe3..da73220 100644 --- a/src/cairo_jpg.h +++ b/src/cairo_jpg.h @@ -1,12 +1,31 @@ +/* Copyright 2018 Bernhard R. Fischer, 4096R/8E24F29D + * + * This file is part of Cairo_JPG. + * + * Cairo_JPG is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Cairo_JPG 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cairo_JPG. If not, see . + */ + #ifndef CAIRO_JPEG_H #define CAIRO_JPEG_H -/*! This file contains all prototypes for the Cairo-JPEG functions implemented +/*! \file cairo_jpg.h + * This file contains all prototypes for the Cairo-JPEG functions implemented * in cairo_jpg.c. See there for the function documentation. * - * @author Bernhard R. Fischer, 2048R/5C5FFD47 bf@abenteuerland.at - * @version 2016/01/01 r1922 - * @license This code is free software. Do whatever you like to do with it. + * @author Bernhard R. Fischer, 4096R/8E24F29D + * @version 2018/12/11 + * @license LGPL3 */ #ifdef HAVE_CONFIG_H