code-intelligence 3.0.1__py3-none-win_amd64.whl → 3.1.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,10 @@ from .goober import (
4
4
  scan_file,
5
5
  find_symbols_in_text,
6
6
  stop,
7
+ clear,
7
8
  )
8
9
 
9
- __version__ = "3.0.1"
10
+ __version__ = "3.1.0"
10
11
  __version_info__ = tuple(int(i) for i in __version__.split('.'))
11
12
 
12
13
  __all__ = [
@@ -15,4 +16,5 @@ __all__ = [
15
16
  "scan_file",
16
17
  "find_symbols_in_text",
17
18
  "stop",
19
+ "clear",
18
20
  ]
@@ -38,6 +38,9 @@ _lib.enqueue_find_symbols_in_text.restype = None
38
38
  _lib.enqueue_stop.argtypes = []
39
39
  _lib.enqueue_stop.restype = None
40
40
 
41
+ _lib.enqueue_clear.argtypes = []
42
+ _lib.enqueue_clear.restype = None
43
+
41
44
  _lib.get_pending_tasks_count.argtypes = []
42
45
  _lib.get_pending_tasks_count.restype = C.c_uint64
43
46
 
@@ -157,6 +160,10 @@ def stop():
157
160
  _lib.enqueue_stop()
158
161
 
159
162
 
163
+ def clear():
164
+ _lib.enqueue_clear()
165
+
166
+
160
167
  def wait_for_callbacks_in_seconds(timeout_s, step_s=0.15):
161
168
  # print(f"[PY] Waiting for callbacks (~{timeout_s}s)...")
162
169
  deadline = time.time() + timeout_s
@@ -111,6 +111,7 @@ extern "C" {
111
111
  extern __declspec(dllexport) void enqueue_scan_file(scan_callback_t callback, uintptr_t data, char* c_path, GoUint64 language);
112
112
  extern __declspec(dllexport) void enqueue_find_symbols_in_text(find_callback_t callback, uintptr_t data, char* c_text);
113
113
  extern __declspec(dllexport) void enqueue_stop(void);
114
+ extern __declspec(dllexport) void enqueue_clear(void);
114
115
  extern __declspec(dllexport) GoUint64 get_pending_tasks_count(void);
115
116
  extern __declspec(dllexport) void free_memory(void* ptr);
116
117
 
Binary file
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code_intelligence
3
- Version: 3.0.1
3
+ Version: 3.1.0
4
4
  Summary: Code intelligence library
@@ -0,0 +1,8 @@
1
+ code_intelligence-3.1.0.dist-info/METADATA,sha256=kvNmRaa0LKtNyJM95_B9mmjHe8QUk1SnYm8nESIvupo,100
2
+ code_intelligence-3.1.0.dist-info/RECORD,,
3
+ code_intelligence-3.1.0.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
4
+ code_intelligence/__init__.py,sha256=_-X5CcA9b9ArVpgK3KLPDsm6OencvUoBRYE7vkWfZhc,353
5
+ code_intelligence/goober.py,sha256=ec9Iv2g3yWTgolrpSl0zKp-Mh8d44l94hIPEvR5FY3A,6332
6
+ code_intelligence/libcode_intelligence.h,sha256=GE8YrqsyrBQbWRIb0FfiWPRCG5W6c5HcZ3sjIOlp2bU,3114
7
+ code_intelligence/libcode_intelligence.so,sha256=RZn_ykJkIifY4xRMYmpDcfQC7O_XrPzw2Klm8VJC9Ww,2829312
8
+ code_intelligence/symdb.py,sha256=gRq3-xr2oYIzudgwDwMj3Zl5Pb0B8tDdnGKUB0WIV_o,32427
@@ -1,8 +0,0 @@
1
- code_intelligence-3.0.1.dist-info/METADATA,sha256=ScA4qConScZC4WNjwdRekYeFFaDLAVRcFk1Y1nTNogY,100
2
- code_intelligence-3.0.1.dist-info/RECORD,,
3
- code_intelligence-3.0.1.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
4
- code_intelligence/__init__.py,sha256=QPD-ZdurftMeM2nYpl6NVgnxjh-s-_E7q3n9eg3RgJo,327
5
- code_intelligence/goober.py,sha256=tX_P4EByTn6JXeUbrN1Su-eQt4EfblQwidjk5Wt9cMo,6217
6
- code_intelligence/libcode_intelligence.h,sha256=GN6gPx-vEG02Ltak29nGSX8rsxDlrjIkI-Tr_xBeet8,3059
7
- code_intelligence/libcode_intelligence.so,sha256=sJB2jhC1GH0V3umiQhpaKwtf6pSPja3aS0n2rgoLnR8,2827264
8
- code_intelligence/symdb.py,sha256=gRq3-xr2oYIzudgwDwMj3Zl5Pb0B8tDdnGKUB0WIV_o,32427