X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Flpp%2Flpp_comm.h;h=193d0043b9a31acc6dcda4482e9fe2954733b0fb;hb=ab85c635582eadf20abe4fca71c1a0ed214b60c6;hp=870c031fd60c3c4761164cf3bc92bbf5f1420828;hpb=4cc881755b5280cd5a3649ecb8d7c8fe197a7fc9;p=libfirm diff --git a/ir/lpp/lpp_comm.h b/ir/lpp/lpp_comm.h index 870c031fd..193d0043b 100644 --- a/ir/lpp/lpp_comm.h +++ b/ir/lpp/lpp_comm.h @@ -1,14 +1,28 @@ -/** - * @file lpp_server.h - * @date 19.07.2005 - * @author Sebastian Hack +/* + * Copyright (C) 2005-2011 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. * - * Copyright (C) 2005 Universitaet Karlsruhe - * Released under the GPL + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#ifndef _LPP_COMM_H -#define _LPP_COMM_H +/** + * @file + * @author Sebastian Hack + */ +#ifndef LPP_LPP_COMM_H +#define LPP_LPP_COMM_H #include #include @@ -18,9 +32,15 @@ #define LPP_BUFSIZE (1 << 20) enum { -#define LPP_CMD(x) LPP_CMD_ ## x, -#include "lpp_cmd.def" -#undef LPP_CMD + LPP_CMD_BAD, + LPP_CMD_OK, + LPP_CMD_PROBLEM, + LPP_CMD_SOLUTION, + LPP_CMD_SOLVER, + LPP_CMD_BYE, + LPP_CMD_SOLVERS, + LPP_CMD_SET_DEBUG, + LPP_CMD_INFO, LPP_CMD_LAST }; @@ -70,7 +90,7 @@ lpp_comm_t *lpp_comm_new(int fd, size_t buf_size); int lpp_comm_fileno(const lpp_comm_t *comm); -ssize_t lpp_flush(lpp_comm_t *comm); +void lpp_flush(lpp_comm_t *comm); void lpp_comm_free(lpp_comm_t *comm);