You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/04/11 11:50:55 UTC

svn commit: r1090994 - in /commons/sandbox/runtime/trunk/src/main/native: include/acr/dso.h os/unix/arch_load.h os/unix/dso.c

Author: mturk
Date: Mon Apr 11 09:50:55 2011
New Revision: 1090994

URL: http://svn.apache.org/viewvc?rev=1090994&view=rev
Log:
Make dso API platform neutral

Added:
    commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h   (with props)
Removed:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_load.h
Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/dso.c

Added: commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h?rev=1090994&view=auto
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h (added)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h Mon Apr 11 09:50:55 2011
@@ -0,0 +1,29 @@
+/* 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.
+ */
+
+#ifndef _ACR_DSO_H_
+#define _ACR_DSO_H_
+
+#include "acr/stdtypes.h"
+
+acr_dso_t
+AcrDsoLoad(const acr_pchar_t *name);
+
+void *
+AcrGetProcAddress(acr_dso_t dso, const char *name);
+
+
+#endif /* _ACR_DSO_H_ */

Propchange: commons/sandbox/runtime/trunk/src/main/native/include/acr/dso.h
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/dso.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/dso.c?rev=1090994&r1=1090993&r2=1090994&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/dso.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/dso.c Mon Apr 11 09:50:55 2011
@@ -17,8 +17,8 @@
 #include "acr/string.h"
 #include "acr/error.h"
 #include "acr/port.h"
+#include "acr/dso.h"
 #include "arch_defs.h"
-#include "arch_load.h"
 
 acr_dso_t
 AcrDsoLoad(const char *name)