Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: third_party/hwcplus/include/cutils/properties.h

Issue 252583002: Make it possible to build libhardware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hwc2
Patch Set: add copyright Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/hwcplus/include/hardware/hardware.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 The Android Open Source Project 2 * Copyright (C) 2006 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, 11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 #ifndef __CUTILS_PROPERTIES_H 17 #ifndef __CUTILS_PROPERTIES_H
18 #define __CUTILS_PROPERTIES_H 18 #define __CUTILS_PROPERTIES_H
19 19
20 #include <sys/cdefs.h> 20 #include <sys/cdefs.h>
21 #include <stddef.h> 21 #include <stddef.h>
22 #ifdef ANDROID
22 #include <sys/system_properties.h> 23 #include <sys/system_properties.h>
24 #else
25 #ifndef PROP_NAME_MAX
26 #define PROP_NAME_MAX 32
27 #endif
28 #ifndef PROP_VALUE_MAX
29 #define PROP_VALUE_MAX 92
30 #endif
31 #endif
23 32
24 #ifdef __cplusplus 33 #ifdef __cplusplus
25 extern "C" { 34 extern "C" {
26 #endif 35 #endif
27 36
28 /* System properties are *small* name value pairs managed by the 37 /* System properties are *small* name value pairs managed by the
29 ** property service. If your data doesn't fit in the provided 38 ** property service. If your data doesn't fit in the provided
30 ** space it is not appropriate for a system property. 39 ** space it is not appropriate for a system property.
31 ** 40 **
32 ** WARNING: system/bionic/include/sys/system_properties.h also defines 41 ** WARNING: system/bionic/include/sys/system_properties.h also defines
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 kSystemPropertyList 90 kSystemPropertyList
82 }; 91 };
83 #endif /*HAVE_SYSTEM_PROPERTY_SERVER*/ 92 #endif /*HAVE_SYSTEM_PROPERTY_SERVER*/
84 93
85 94
86 #ifdef __cplusplus 95 #ifdef __cplusplus
87 } 96 }
88 #endif 97 #endif
89 98
90 #endif 99 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/hwcplus/include/hardware/hardware.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698