Author: abroekhuis
Date: Mon May 16 13:52:22 2011
New Revision: 1103736

URL: http://svn.apache.org/viewvc?rev=1103736&view=rev
Log:
Updated mongoose bundle, removed test logging

Modified:
    incubator/celix/trunk/mongoose/CMakeLists.txt
    incubator/celix/trunk/mongoose/activator.c

Modified: incubator/celix/trunk/mongoose/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/incubator/celix/trunk/mongoose/CMakeLists.txt?rev=1103736&r1=1103735&r2=1103736&view=diff
==============================================================================
--- incubator/celix/trunk/mongoose/CMakeLists.txt (original)
+++ incubator/celix/trunk/mongoose/CMakeLists.txt Mon May 16 13:52:22 2011
@@ -16,6 +16,7 @@
 # under the License.
 
 add_library(mongoose STATIC mongoose.c)
+SET_TARGET_PROPERTIES( mongoose PROPERTIES COMPILE_FLAGS -fPIC)
 
 add_library(celix.mongoose SHARED activator)
 include_directories("${PROJECT_SOURCE_DIR}/utils/public/include")

Modified: incubator/celix/trunk/mongoose/activator.c
URL: 
http://svn.apache.org/viewvc/incubator/celix/trunk/mongoose/activator.c?rev=1103736&r1=1103735&r2=1103736&view=diff
==============================================================================
--- incubator/celix/trunk/mongoose/activator.c (original)
+++ incubator/celix/trunk/mongoose/activator.c Mon May 16 13:52:22 2011
@@ -45,7 +45,6 @@ celix_status_t bundleActivator_start(voi
        BUNDLE b = bundleContext_getBundle(context);
        char *entry = NULL;
        bundle_getEntry(b, "root", &entry);
-       printf("Entry: %s\n", entry);
 
        const char *options[] = {
                "document_root", entry,
@@ -53,7 +52,7 @@ celix_status_t bundleActivator_start(voi
        };
        data->ctx = mg_start(NULL, options);
 
-       printf("Mongoose startet: %p\n", data->ctx);
+       printf("Mongoose startet on: %s\n", mg_get_option(data->ctx, 
"listening_ports"));
 
        return CELIX_SUCCESS;
 }
@@ -61,6 +60,7 @@ celix_status_t bundleActivator_start(voi
 celix_status_t bundleActivator_stop(void * userData, BUNDLE_CONTEXT context) {
        struct userData * data = (struct userData *) userData;
        mg_stop(data->ctx);
+       printf("Mongoose stopped");
        return CELIX_SUCCESS;
 }
 


Reply via email to