-#include "libxml.h"
-
#include "opensrf/generic_utils.h"
#include <string.h>
transport_message* message_init( char* body, char* subject,
char* thread, char* recipient, char* sender );
+transport_message* new_message_from_xml( const char* msg_xml );
+
void message_set_router_info( transport_message* msg, char* router_from,
char* router_to, char* router_class, char* router_command, int broadcast_enabled );
// a SAX push parser as it arrives. When key Jabber documetn elements are met,
// logic ensues.
// ---------------------------------------------------------------------------------
-#include "libxml.h"
#include "opensrf/transport_socket.h"
#include "opensrf/transport_message.h"
#include "opensrf/generic_utils.h"
CC = gcc
LIB_DIR=../../lib
-CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -I /home/erickson/cc/libxml2-2.6.16
+CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include #-I /home/erickson/cc/libxml2-2.6.16
EXE_LD_OPTS = -L $(LIB_DIR) -lxml2 -lopensrf_transport
LIB_SOURCES = generic_utils.c transport_socket.c transport_session.c transport_message.c transport_client.c
#MALLOC_CHECK_=1 # XXX debug only
CC = gcc
-CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -I /home/erickson/cc/libxml2-2.6.16
+CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include
LD_OPTS = -lxml2
LP=../libtransport
LIB_SOURCES = $(LP)/generic_utils.c $(LP)/transport_socket.c $(LP)/transport_session.c $(LP)/transport_message.c $(LP)/transport_client.c
-all: router
+all: router router_query
+
+router_query: router_query.c
+ $(CC) $(CC_OPTS) -L ../../lib -lopensrf_transport -lxml2 router_query.c -o router_query
# The router is compiled as a static binary because of some
# necessary #defines that would break the library
$(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS) $(LIB_SOURCES) router.c -o $@
clean:
- /bin/rm -f router
+ /bin/rm -f router router_query