]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Spliting lib into core and mngt
authorMartin Molnar <molnar@sum.(none)>
Mon, 26 May 2008 15:13:37 +0000 (17:13 +0200)
committerMartin Molnar <molnar@sum.(none)>
Mon, 26 May 2008 15:13:37 +0000 (17:13 +0200)
28 files changed:
fwp/Makefile.omk
fwp/lib/Makefile.omk [deleted file]
fwp/lib/core/Makefile [moved from fwp/lib/Makefile with 100% similarity]
fwp/lib/core/Makefile.omk [new file with mode: 0644]
fwp/lib/core/fwp_conf.h [moved from fwp/lib/fwp_conf.h with 100% similarity]
fwp/lib/core/fwp_endpoint.c [moved from fwp/lib/fwp_endpoint.c with 100% similarity]
fwp/lib/core/fwp_endpoint.h [moved from fwp/lib/fwp_endpoint.h with 100% similarity]
fwp/lib/core/fwp_msgb.c [moved from fwp/lib/fwp_msgb.c with 100% similarity]
fwp/lib/core/fwp_msgb.h [moved from fwp/lib/fwp_msgb.h with 100% similarity]
fwp/lib/core/fwp_msgq.c [moved from fwp/lib/fwp_msgq.c with 100% similarity]
fwp/lib/core/fwp_msgq.h [moved from fwp/lib/fwp_msgq.h with 100% similarity]
fwp/lib/core/fwp_types.h [moved from fwp/lib/fwp_types.h with 100% similarity]
fwp/lib/core/fwp_util.c [moved from fwp/lib/fwp_util.c with 100% similarity]
fwp/lib/core/fwp_util.h [moved from fwp/lib/fwp_util.h with 100% similarity]
fwp/lib/core/fwp_vres.c [moved from fwp/lib/fwp_vres.c with 100% similarity]
fwp/lib/core/fwp_vres.h [moved from fwp/lib/fwp_vres.h with 100% similarity]
fwp/lib/fwp.h
fwp/lib/mngt/Makefile [moved from fwp/mngt/Makefile with 100% similarity]
fwp/lib/mngt/Makefile.omk [moved from fwp/mngt/Makefile.omk with 50% similarity]
fwp/lib/mngt/fwp_contract.c [moved from fwp/mngt/fwp_contract.c with 100% similarity]
fwp/lib/mngt/fwp_contract.h [moved from fwp/mngt/fwp_contract.h with 100% similarity]
fwp/lib/mngt/fwp_contract_table.c [moved from fwp/mngt/fwp_contract_table.c with 100% similarity]
fwp/lib/mngt/fwp_contract_table.h [moved from fwp/mngt/fwp_contract_table.h with 100% similarity]
fwp/lib/mngt/fwp_mngt.c [moved from fwp/mngt/fwp_mngt.c with 100% similarity]
fwp/lib/mngt/fwp_mngt.h [moved from fwp/mngt/fwp_mngt.h with 91% similarity]
fwp/lib/mngt/fwp_msg.c [moved from fwp/mngt/fwp_msg.c with 100% similarity]
fwp/lib/mngt/fwp_msg.h [moved from fwp/mngt/fwp_msg.h with 100% similarity]
fwp/lib/mngt/fwp_participant.h [moved from fwp/mngt/fwp_participant.h with 100% similarity]

index 1ae38aafce6fa8aeea1f8f58cb5cf11953857e8b..5458b516984fdbee5e611043d2039a7552c464ba 100644 (file)
@@ -1,2 +1,2 @@
 #SUBDIRS = $(ALL_OMK_SUBDIRS)
-SUBDIRS = ulut lib mngt mngr 
+SUBDIRS = ulut lib 
diff --git a/fwp/lib/Makefile.omk b/fwp/lib/Makefile.omk
deleted file mode 100644 (file)
index d92543e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-lib_LIBRARIES = fwp
-CFLAGS = -Wall -D_REENTRANT -g
-#LDFLAGS = -lpthread  -lrt
-fwp_SOURCES = fwp_util.c fwp_vres.c fwp_msgb.c fwp_msgq.c\
-             fwp_endpoint.c
-
-include_HEADERS=  fwp_vres.h fwp_msgb.h fwp_msgq.h \
-                 fwp_conf.h  fwp_util.h fwp_endpoint.h fwp.h 
-
-#lib_LOADLIBES+= pthread rt
similarity index 100%
rename from fwp/lib/Makefile
rename to fwp/lib/core/Makefile
diff --git a/fwp/lib/core/Makefile.omk b/fwp/lib/core/Makefile.omk
new file mode 100644 (file)
index 0000000..11457d9
--- /dev/null
@@ -0,0 +1,10 @@
+#lib_LIBRARIES = fwp
+#CFLAGS = -Wall -D_REENTRANT -g
+#LDFLAGS = -lpthread  -lrt
+#fwp_SOURCES = fwp_util.c fwp_vres.c fwp_msgb.c fwp_msgq.c\
+             fwp_endpoint.c
+
+include_HEADERS=  fwp_vres.h fwp_msgb.h fwp_msgq.h \
+                 fwp_conf.h  fwp_util.h fwp_endpoint.h 
+
+#lib_LOADLIBES+= pthread rt
similarity index 100%
rename from fwp/lib/fwp_conf.h
rename to fwp/lib/core/fwp_conf.h
similarity index 100%
rename from fwp/lib/fwp_msgb.c
rename to fwp/lib/core/fwp_msgb.c
similarity index 100%
rename from fwp/lib/fwp_msgb.h
rename to fwp/lib/core/fwp_msgb.h
similarity index 100%
rename from fwp/lib/fwp_msgq.c
rename to fwp/lib/core/fwp_msgq.c
similarity index 100%
rename from fwp/lib/fwp_msgq.h
rename to fwp/lib/core/fwp_msgq.h
similarity index 100%
rename from fwp/lib/fwp_types.h
rename to fwp/lib/core/fwp_types.h
similarity index 100%
rename from fwp/lib/fwp_util.c
rename to fwp/lib/core/fwp_util.c
similarity index 100%
rename from fwp/lib/fwp_util.h
rename to fwp/lib/core/fwp_util.h
similarity index 100%
rename from fwp/lib/fwp_vres.c
rename to fwp/lib/core/fwp_vres.c
similarity index 100%
rename from fwp/lib/fwp_vres.h
rename to fwp/lib/core/fwp_vres.h
index 223fcfc7dd78cf3cb4ad7e66824e96df0304c69a..eb2b862b545c6f54832e4ac8487c9248a6a8f8d2 100644 (file)
@@ -3,8 +3,7 @@
 
 #include "fwp_conf.h"
 #include "fwp_endpoint.h"
-#include "fwp_contract.h"
-#include "fwp_comm.h"
+#include "fwp_mngt.h"
 
 /**
  * FWP initialisation
@@ -22,7 +21,7 @@ static inline int fwp_init()
 
        if ((rv = fwp_endpoint_table_init(FWP_EPOINT_MAX)) ||
            (rv = fwp_vres_table_init(FWP_VRES_MAX)) ||
-           (rv = fwp_comm_init())) 
+           (rv = fwp_mngt_init())) 
                return rv;
        return 0;
 }
similarity index 100%
rename from fwp/mngt/Makefile
rename to fwp/lib/mngt/Makefile
similarity index 50%
rename from fwp/mngt/Makefile.omk
rename to fwp/lib/mngt/Makefile.omk
index 2af80612cdd8ad64d20a48471dceaa71441e90cb..8ec1b8d27b14504749f8acab0fd4b8e2dccdf881 100644 (file)
@@ -1,9 +1,9 @@
-lib_LIBRARIES = fwpmngt
-CFLAGS = -Wall -D_REENTRANT -g
+#lib_LIBRARIES = fwpmngt
+#CFLAGS = -Wall -D_REENTRANT -g
 #LDFLAGS = -lpthread  -lrt
-fwpmngt_SOURCES = fwp_msg.c fwp_mngt.c  
+#fwpmngt_SOURCES = fwp_msg.c fwp_mngt.c  
 
 include_HEADERS= fwp_msg.h fwp_participant.h fwp_contract.h fwp_mngt.h 
 
-lib_LOADLIBES+= fwp ulut
+#lib_LOADLIBES+= fwp ulut
 #lib_LOADLIBES+= pthread rt
similarity index 100%
rename from fwp/mngt/fwp_mngt.c
rename to fwp/lib/mngt/fwp_mngt.c
similarity index 91%
rename from fwp/mngt/fwp_mngt.h
rename to fwp/lib/mngt/fwp_mngt.h
index 8c7654039d1179775d3cadb7ada1704e55837d48..4dd254fb33770c0b794141f6323c0efe6cc50156 100644 (file)
@@ -8,11 +8,6 @@
 #include "fwp_endpoint.h"
 
 #define FWP_MNGR_STREAM_ID     3000
-
-
-typedef int tr_id_t;
-
-
 #define FWP_MNGT_DISCOVERY_STREAM_ID   3000
 
 int fwp_mngt_init();
similarity index 100%
rename from fwp/mngt/fwp_msg.c
rename to fwp/lib/mngt/fwp_msg.c
similarity index 100%
rename from fwp/mngt/fwp_msg.h
rename to fwp/lib/mngt/fwp_msg.h