diff options
author | Vasu Nori <vnori@google.com> | 2010-05-18 11:54:31 -0700 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2010-06-02 17:40:41 -0700 |
commit | 8b0dd7da360d70920a37802eb455ba41500d3b45 (patch) | |
tree | d31a63e67bbfad53c2dfe4002795b73286b7c361 /include/binder | |
parent | 3e7432f823b9f0457e935614787cff4eb71a8f2b (diff) | |
download | frameworks_base-8b0dd7da360d70920a37802eb455ba41500d3b45.zip frameworks_base-8b0dd7da360d70920a37802eb455ba41500d3b45.tar.gz frameworks_base-8b0dd7da360d70920a37802eb455ba41500d3b45.tar.bz2 |
add API to Cursor to get column value type
Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
Diffstat (limited to 'include/binder')
-rw-r--r-- | include/binder/CursorWindow.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/binder/CursorWindow.h b/include/binder/CursorWindow.h index bda0d31..4fbff2a 100644 --- a/include/binder/CursorWindow.h +++ b/include/binder/CursorWindow.h @@ -1,16 +1,16 @@ /* * Copyright (C) 2006 The Android Open Source Project * - * Licensed 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 + * Licensed 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 + * 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 + * 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. */ @@ -80,11 +80,11 @@ typedef struct } data; } __attribute__((packed)) field_slot_t; +#define FIELD_TYPE_NULL 0 #define FIELD_TYPE_INTEGER 1 #define FIELD_TYPE_FLOAT 2 #define FIELD_TYPE_STRING 3 #define FIELD_TYPE_BLOB 4 -#define FIELD_TYPE_NULL 5 /** * This class stores a set of rows from a database in a buffer. The begining of the @@ -170,7 +170,7 @@ public: row_slot_t * allocRowSlot(); row_slot_t * getRowSlot(int row); - + /** * return NULL if Failed to find rowSlot or * Invalid rowSlot |