File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ class IndexStore {
138
138
return indexstore_format_version ();
139
139
}
140
140
141
+ static unsigned version () {
142
+ return indexstore_version ();
143
+ }
144
+
141
145
bool isValid () const { return obj; }
142
146
bool isInvalid () const { return !isValid (); }
143
147
explicit operator bool () const { return isValid (); }
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ typedef struct {
128
128
INDEXSTORE_PUBLIC unsigned
129
129
indexstore_format_version (void );
130
130
131
+ INDEXSTORE_PUBLIC unsigned indexstore_version (void );
132
+
131
133
typedef void * indexstore_t ;
132
134
typedef void * indexstore_creation_options_t ;
133
135
Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ indexstore_format_version(void) {
101
101
return IndexDataStore::getFormatVersion ();
102
102
}
103
103
104
+ unsigned indexstore_version (void ) {
105
+ return INDEXSTORE_VERSION;
106
+ }
107
+
104
108
indexstore_creation_options_t
105
109
indexstore_creation_options_create (void ) {
106
110
return new IndexStoreCreationOptions ();
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ indexstore_creation_options_dispose
4
4
indexstore_error_get_description
5
5
indexstore_error_dispose
6
6
indexstore_format_version
7
+ indexstore_version
7
8
indexstore_store_create
8
9
indexstore_store_create_with_options
9
10
indexstore_store_dispose
You can’t perform that action at this time.
0 commit comments