Browse code

Add missing file.

Török Edvin authored on 2009/09/07 21:57:41
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,27 @@
0
+/*
1
+ *  ClamAV bytecode internal API
2
+ *
3
+ *  Copyright (C) 2009 Sourcefire, Inc.
4
+ *
5
+ *  Authors: Török Edvin
6
+ *
7
+ *  This program is free software; you can redistribute it and/or modify
8
+ *  it under the terms of the GNU General Public License version 2 as
9
+ *  published by the Free Software Foundation.
10
+ *
11
+ *  This program is distributed in the hope that it will be useful,
12
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+ *  GNU General Public License for more details.
15
+ *
16
+ *  You should have received a copy of the GNU General Public License
17
+ *  along with this program; if not, write to the Free Software
18
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ *  MA 02110-1301, USA.
20
+ */
21
+struct cli_bc_ctx;
22
+uint32_t cli_bcapi_test0(struct cli_bc_ctx *, struct foo*, uint32_t);
23
+uint32_t cli_bcapi_test1(struct cli_bc_ctx *, uint32_t, uint32_t);
24
+
25
+int32_t cli_bcapi_read(struct cli_bc_ctx*, uint8_t *data, int32_t size);
26
+int32_t cli_bcapi_seek(struct cli_bc_ctx*, int32_t pos, uint32_t whence);
... ...
@@ -33,7 +33,7 @@ libclamavcxx_la_CPPFLAGS = $(AM_CPPFLAGS) $(LLVM_INCLUDES) $(LLVM_DEFS)
33 33
 libclamavcxx_la_LIBADD=libllvmexecutionengine.la
34 34
 libclamavcxx_la_LDFLAGS=-no-undefined
35 35
 #libclamavcxx_la_LDFLAGS = `$(LLVM_CONFIG) --ldflags --libs jit nativecodegen`
36
-libclamavcxx_la_SOURCES = bytecode2llvm.cpp dummy.h
36
+libclamavcxx_la_SOURCES = bytecode2llvm.cpp
37 37
 
38 38
 LLVM_INCLUDES=-I$(top_srcdir)/llvm/include -I$(top_builddir)/llvm/include
39 39
 # TODO: _DEBUG should be defined for --enable-debug, and NDEBUG otherwise, but
... ...
@@ -42,7 +42,8 @@ LLVM_INCLUDES=-I$(top_srcdir)/llvm/include -I$(top_builddir)/llvm/include
42 42
 LLVM_DEFS=-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -D_GNU_SOURCE
43 43
 LLVM_CXXFLAGS=-Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings
44 44
 
45
-EXTRA_DIST=llvm/lib/System/README.txt
45
+EXTRA_DIST=llvm
46
+
46 47
 libllvmsystem_la_CPPFLAGS=$(LLVM_INCLUDES) $(LLVM_DEFS)
47 48
 libllvmsystem_la_CXXFLAGS=$(LLVM_CXXFLAGS) -fno-exceptions
48 49
 libllvmsystem_la_LDFLAGS=-pthread
... ...
@@ -602,14 +602,14 @@ libclamavcxx_la_CPPFLAGS = $(AM_CPPFLAGS) $(LLVM_INCLUDES) $(LLVM_DEFS)
602 602
 libclamavcxx_la_LIBADD = libllvmexecutionengine.la
603 603
 libclamavcxx_la_LDFLAGS = -no-undefined
604 604
 #libclamavcxx_la_LDFLAGS = `$(LLVM_CONFIG) --ldflags --libs jit nativecodegen`
605
-libclamavcxx_la_SOURCES = bytecode2llvm.cpp dummy.h
605
+libclamavcxx_la_SOURCES = bytecode2llvm.cpp
606 606
 LLVM_INCLUDES = -I$(top_srcdir)/llvm/include -I$(top_builddir)/llvm/include
607 607
 # TODO: _DEBUG should be defined for --enable-debug, and NDEBUG otherwise, but
608 608
 # keep it like this while I'm testing LLVM
609 609
 # TODO: HP-UX should have -D_REENTRANT -D_HPUX_SOURCE
610 610
 LLVM_DEFS = -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -D_GNU_SOURCE
611 611
 LLVM_CXXFLAGS = -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings
612
-EXTRA_DIST = llvm/lib/System/README.txt
612
+EXTRA_DIST = llvm
613 613
 libllvmsystem_la_CPPFLAGS = $(LLVM_INCLUDES) $(LLVM_DEFS)
614 614
 libllvmsystem_la_CXXFLAGS = $(LLVM_CXXFLAGS) -fno-exceptions
615 615
 libllvmsystem_la_LDFLAGS = -pthread