summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-12 09:25:18 -0400
committermidipix <writeonce@midipix.org>2016-08-12 09:41:53 -0400
commitbbc71faf95a515f6e66ac12ed654d51a4d488782 (patch)
tree419657ecde29db764c7e2c9f633b086b315c8be6 /include
parent563a1e17dcddd5b622d07d431a36e74b241993e1 (diff)
downloadntapi-bbc71faf95a515f6e66ac12ed654d51a4d488782.tar.bz2
ntapi-bbc71faf95a515f6e66ac12ed654d51a4d488782.tar.xz
sync block: remove validate/invalidate api, fix lock_tries logic, tidy up.
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_sync.h24
-rw-r--r--include/ntapi/ntapi.h5
2 files changed, 10 insertions, 19 deletions
diff --git a/include/ntapi/nt_sync.h b/include/ntapi/nt_sync.h
index 99508dd..38d304b 100644
--- a/include/ntapi/nt_sync.h
+++ b/include/ntapi/nt_sync.h
@@ -393,14 +393,11 @@ typedef void __stdcall ntapi_tt_sync_block_init(
__in void * hsignal __optional);
-typedef int32_t __stdcall ntapi_tt_sync_block_lock(
- __in nt_sync_block * sync_block,
- __in int32_t lock_tries __optional,
- __in int64_t lock_wait __optional,
- __in uint32_t * sig_flag __optional);
+typedef int32_t __stdcall ntapi_tt_sync_block_discard(
+ __in nt_sync_block * sync_block);
-typedef int32_t __stdcall ntapi_tt_sync_block_server_lock(
+typedef int32_t __stdcall ntapi_tt_sync_block_lock(
__in nt_sync_block * sync_block,
__in int32_t lock_tries __optional,
__in int64_t lock_wait __optional,
@@ -411,16 +408,11 @@ typedef int32_t __stdcall ntapi_tt_sync_block_unlock(
__in nt_sync_block * sync_block);
-typedef void __stdcall ntapi_tt_sync_block_validate(
- __in nt_sync_block * sync_block);
-
-
-typedef int32_t __stdcall ntapi_tt_sync_block_invalidate(
- __in nt_sync_block * sync_block);
-
-
-typedef int32_t __stdcall ntapi_tt_sync_block_discard(
- __in nt_sync_block * sync_block);
+typedef int32_t __stdcall ntapi_tt_sync_block_server_lock(
+ __in nt_sync_block * sync_block,
+ __in int32_t lock_tries __optional,
+ __in int64_t lock_wait __optional,
+ __in uint32_t * sig_flag __optional);
typedef int32_t __stdcall ntapi_tt_wait_for_dummy_event(void);
diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h
index f330283..0af598a 100644
--- a/include/ntapi/ntapi.h
+++ b/include/ntapi/ntapi.h
@@ -466,11 +466,10 @@ typedef struct _ntapi_vtbl {
ntapi_tt_create_inheritable_event * tt_create_inheritable_event;
ntapi_tt_create_private_event * tt_create_private_event;
ntapi_tt_sync_block_init * tt_sync_block_init;
+ ntapi_tt_sync_block_discard * tt_sync_block_discard;
ntapi_tt_sync_block_lock * tt_sync_block_lock;
- ntapi_tt_sync_block_server_lock * tt_sync_block_server_lock;
ntapi_tt_sync_block_unlock * tt_sync_block_unlock;
- ntapi_tt_sync_block_invalidate * tt_sync_block_invalidate;
- ntapi_tt_sync_block_discard * tt_sync_block_discard;
+ ntapi_tt_sync_block_server_lock * tt_sync_block_server_lock;
ntapi_tt_wait_for_dummy_event * tt_wait_for_dummy_event;
/* nt_port.h */