incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject svn commit: r1142943 - in /incubator/celix/trunk: log_service/private/include/ log_writer/MANIFEST/
Date Tue, 05 Jul 2011 09:31:08 GMT
Author: abroekhuis
Date: Tue Jul  5 09:31:08 2011
New Revision: 1142943

URL: http://svn.apache.org/viewvc?rev=1142943&view=rev
Log:
Added a log service and writer. Continued check-in

Added:
    incubator/celix/trunk/log_service/private/include/log.h   (with props)
    incubator/celix/trunk/log_service/private/include/log_factory.h   (with props)
    incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h   (with props)
    incubator/celix/trunk/log_service/private/include/log_service_impl.h   (with props)
    incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF   (with props)

Added: incubator/celix/trunk/log_service/private/include/log.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/log_service/private/include/log.h?rev=1142943&view=auto
==============================================================================
--- incubator/celix/trunk/log_service/private/include/log.h (added)
+++ incubator/celix/trunk/log_service/private/include/log.h Tue Jul  5 09:31:08 2011
@@ -0,0 +1,44 @@
+/**
+ *Licensed to the Apache Software Foundation (ASF) under one
+ *or more contributor license agreements.  See the NOTICE file
+ *distributed with this work for additional information
+ *regarding copyright ownership.  The ASF licenses this file
+ *to you under the Apache License, Version 2.0 (the
+ *"License"); you may not use this file except in compliance
+ *with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *Unless required by applicable law or agreed to in writing,
+ *software distributed under the License is distributed on an
+ *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ *specific language governing permissions and limitations
+ *under the License.
+ */
+/*
+ * logger.h
+ *
+ *  Created on: Jun 26, 2011
+ *      Author: alexander
+ */
+
+#ifndef LOG_H_
+#define LOG_H_
+
+#include "headers.h"
+#include "linkedlist.h"
+#include "log_entry.h"
+#include "log_listener.h"
+
+typedef struct log * log_t;
+
+celix_status_t log_create(apr_pool_t *pool, log_t *logger);
+celix_status_t log_addEntry(log_t log, log_entry_t entry);
+celix_status_t log_getEntries(log_t log, LINKED_LIST *list);
+
+celix_status_t log_addLogListener(log_t logger, log_listener_t listener);
+celix_status_t log_removeLogListener(log_t logger, log_listener_t listener);
+celix_status_t log_removeAllLogListener(log_t logger);
+
+#endif /* LOG_H_ */

Propchange: incubator/celix/trunk/log_service/private/include/log.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/celix/trunk/log_service/private/include/log_factory.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/log_service/private/include/log_factory.h?rev=1142943&view=auto
==============================================================================
--- incubator/celix/trunk/log_service/private/include/log_factory.h (added)
+++ incubator/celix/trunk/log_service/private/include/log_factory.h Tue Jul  5 09:31:08 2011
@@ -0,0 +1,39 @@
+/**
+ *Licensed to the Apache Software Foundation (ASF) under one
+ *or more contributor license agreements.  See the NOTICE file
+ *distributed with this work for additional information
+ *regarding copyright ownership.  The ASF licenses this file
+ *to you under the Apache License, Version 2.0 (the
+ *"License"); you may not use this file except in compliance
+ *with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *Unless required by applicable law or agreed to in writing,
+ *software distributed under the License is distributed on an
+ *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ *specific language governing permissions and limitations
+ *under the License.
+ */
+/*
+ * log_factory.h
+ *
+ *  Created on: Jun 26, 2011
+ *      Author: alexander
+ */
+
+#ifndef LOG_FACTORY_H_
+#define LOG_FACTORY_H_
+
+#include "headers.h"
+#include "log.h"
+
+typedef struct log_service_factory * log_service_factory_t;
+
+celix_status_t logFactory_create(apr_pool_t *pool, log_t log, service_factory_t *factory);
+celix_status_t logFactory_getService(void *factory, BUNDLE bundle, SERVICE_REGISTRATION registration,
void **service);
+celix_status_t logFactory_ungetService(void *factory, BUNDLE bundle, SERVICE_REGISTRATION
registration);
+
+
+#endif /* LOG_FACTORY_H_ */

Propchange: incubator/celix/trunk/log_service/private/include/log_factory.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h?rev=1142943&view=auto
==============================================================================
--- incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h (added)
+++ incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h Tue Jul  5
09:31:08 2011
@@ -0,0 +1,41 @@
+/**
+ *Licensed to the Apache Software Foundation (ASF) under one
+ *or more contributor license agreements.  See the NOTICE file
+ *distributed with this work for additional information
+ *regarding copyright ownership.  The ASF licenses this file
+ *to you under the Apache License, Version 2.0 (the
+ *"License"); you may not use this file except in compliance
+ *with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *Unless required by applicable law or agreed to in writing,
+ *software distributed under the License is distributed on an
+ *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ *specific language governing permissions and limitations
+ *under the License.
+ */
+/*
+ * log_reader_service_impl.h
+ *
+ *  Created on: Jun 26, 2011
+ *      Author: alexander
+ */
+
+#ifndef LOG_READER_SERVICE_IMPL_H_
+#define LOG_READER_SERVICE_IMPL_H_
+
+#include "log_reader_service.h"
+#include "log.h"
+
+celix_status_t logReaderService_create(log_t log, apr_pool_t *pool, log_reader_data_t *reader);
+
+celix_status_t logReaderService_getLog(log_reader_data_t reader, LINKED_LIST *list);
+
+celix_status_t logReaderService_addLogListener(log_reader_data_t reader, log_listener_t listener);
+celix_status_t logReaderService_removeLogListener(log_reader_data_t reader, log_listener_t
listener);
+celix_status_t logReaderService_removeAllLogListener(log_reader_data_t reader);
+
+
+#endif /* LOG_READER_SERVICE_IMPL_H_ */

Propchange: incubator/celix/trunk/log_service/private/include/log_reader_service_impl.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/celix/trunk/log_service/private/include/log_service_impl.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/log_service/private/include/log_service_impl.h?rev=1142943&view=auto
==============================================================================
--- incubator/celix/trunk/log_service/private/include/log_service_impl.h (added)
+++ incubator/celix/trunk/log_service/private/include/log_service_impl.h Tue Jul  5 09:31:08
2011
@@ -0,0 +1,38 @@
+/**
+ *Licensed to the Apache Software Foundation (ASF) under one
+ *or more contributor license agreements.  See the NOTICE file
+ *distributed with this work for additional information
+ *regarding copyright ownership.  The ASF licenses this file
+ *to you under the Apache License, Version 2.0 (the
+ *"License"); you may not use this file except in compliance
+ *with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *Unless required by applicable law or agreed to in writing,
+ *software distributed under the License is distributed on an
+ *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ *specific language governing permissions and limitations
+ *under the License.
+ */
+/*
+ * log.h
+ *
+ *  Created on: Jun 22, 2011
+ *      Author: alexander
+ */
+
+#ifndef LOG_SERVICE_IMPL_H_
+#define LOG_SERVICE_IMPL_H_
+
+#include "headers.h"
+#include "log_service.h"
+#include "log.h"
+
+celix_status_t logService_create(log_t log, BUNDLE bundle, apr_pool_t *pool, log_service_data_t
*logger);
+celix_status_t logService_log(log_service_data_t logger, log_level_t level, char * message);
+celix_status_t logService_logSr(log_service_data_t logger, SERVICE_REFERENCE reference, log_level_t
level, char * message);
+
+
+#endif /* LOG_SERVICE_IMPL_H_ */

Propchange: incubator/celix/trunk/log_service/private/include/log_service_impl.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF?rev=1142943&view=auto
==============================================================================
--- incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF (added)
+++ incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF Tue Jul  5 09:31:08 2011
@@ -0,0 +1,4 @@
+Bundle-SymbolicName: log_writer
+Bundle-Version: 1.0.0.test
+library: log_writer
+Import-Service: log_reader_service

Propchange: incubator/celix/trunk/log_writer/MANIFEST/MANIFEST.MF
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message