X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fplatform%2Fposix%2Fos-types.h;h=631e96508e963a9cfb1b88184e463fc80527d837;hb=996665192725398172263999b88c63663d11db04;hp=521c89a0aa710d75b4668c5871b0d363a87e00a3;hpb=ba65909d0a9c43a1bac71c6182c53f202285cec5;p=deb_libcec.git diff --git a/src/lib/platform/posix/os-types.h b/src/lib/platform/posix/os-types.h index 521c89a..631e965 100644 --- a/src/lib/platform/posix/os-types.h +++ b/src/lib/platform/posix/os-types.h @@ -1,21 +1,34 @@ #pragma once /* - * Copyright (C) 2005-2011 Team XBMC - * http://www.xbmc.org + * This file is part of the libCEC(R) library. * - * 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, or (at your option) - * any later version. + * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is an original work, containing original code. * - * 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. + * libCEC(R) is a trademark of Pulse-Eight Limited. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * This program is dual-licensed; 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * + * Alternatively, you can license this library under a commercial license, + * please contact Pulse-Eight Licensing for more information. + * + * For more information contact: + * Pulse-Eight Licensing + * http://www.pulse-eight.com/ + * http://www.pulse-eight.net/ */ #define _FILE_OFFSET_BITS 64 @@ -34,6 +47,7 @@ #define DECLSPEC typedef int socket_t; -#define INVALID_SOCKET (-1) -#define SOCKET_ERROR (-1) - +typedef socket_t tcp_socket_t; +#define INVALID_SOCKET_VALUE (-1) +typedef socket_t serial_socket_t; +#define INVALID_SERIAL_SOCKET_VALUE (-1)