-/**
- * @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 <stdio.h>
#include <stdarg.h>
#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
};
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);