X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_tail.h;h=73a6de215b8bcd7848c28f07a4bee2803e89312c;hb=68199d5ac60b0abb19e0dd931b5731515dcd51d2;hp=c47931976dda5551a0bdb492e39c2346e1c6efe5;hpb=2c53e30ff65e5d5b09f39f8255a76c3e4a6f8947;p=collectd.git diff --git a/src/utils_tail.h b/src/utils_tail.h index c4793197..73a6de21 100644 --- a/src/utils_tail.h +++ b/src/utils_tail.h @@ -2,18 +2,23 @@ * collectd - src/utils_tail.h * Copyright (C) 2007-2008 C-Ware, Inc. * - * 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; only version 2 of the License is applicable. + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: * - * 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. + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. * - * 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 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. * * Author: * Luke Heberling @@ -42,7 +47,7 @@ typedef int tailfunc_t(void *data, char *buf, int buflen); * PARAMETERS * `file' The name of the file to be tailed. */ -cu_tail_t *cu_tail_create (const char *file); +cu_tail_t *cu_tail_create(const char *file); /* * cu_tail_destroy @@ -52,7 +57,7 @@ cu_tail_t *cu_tail_create (const char *file); * * Returns 0 when successful and non-zero otherwise. */ -int cu_tail_destroy (cu_tail_t *obj); +int cu_tail_destroy(cu_tail_t *obj); /* * cu_tail_readline @@ -68,7 +73,7 @@ int cu_tail_destroy (cu_tail_t *obj); * * Returns 0 when successful and non-zero otherwise. */ -int cu_tail_readline (cu_tail_t *obj, char *buf, int buflen); +int cu_tail_readline(cu_tail_t *obj, char *buf, int buflen); /* * cu_tail_readline @@ -77,7 +82,7 @@ int cu_tail_readline (cu_tail_t *obj, char *buf, int buflen); * * Returns 0 when successful and non-zero otherwise. */ -int cu_tail_read (cu_tail_t *obj, char *buf, int buflen, tailfunc_t *callback, - void *data); +int cu_tail_read(cu_tail_t *obj, char *buf, int buflen, tailfunc_t *callback, + void *data); #endif /* UTILS_TAIL_H */