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 2009/08/12 18:12:00 UTC

svn commit: r803580 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h

Author: mturk
Date: Wed Aug 12 16:11:59 2009
New Revision: 803580

URL: http://svn.apache.org/viewvc?rev=803580&view=rev
Log:
Add env api header file

Added:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h   (with props)

Added: commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h?rev=803580&view=auto
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h (added)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_env.h Wed Aug 12 16:11:59 2009
@@ -0,0 +1,58 @@
+/* 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_ENV_H
+#define _ACR_ENV_H
+
+#include "acr.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file acr_env.h
+ * @brief
+ *
+ * ACR Environment functions
+ *
+ */
+
+/**
+ * Get the value of an environment variable
+ * @param envvar the name of the environment variable
+ */
+ACR_DECLARE(char *) ACR_EnvGet(const char *envvar);
+
+/**
+ * Set the value of an environment variable
+ * @param envvar the name of the environment variable
+ * @param value the value to set
+ */
+ACR_DECLARE(int) ACR_EnvSet(const char *envvar, const char *value);
+
+/**
+ * Delete a variable from the environment
+ * @param envvar the name of the environment variable
+ */
+ACR_DECLARE(int) ACR_EnvDelete(const char *envvar);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ACR_VM_H */
+

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