diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-03 11:26:38 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-03 11:37:27 -0700 |
commit | 319f4e2793e691a7aeabad09e463ac09df562ed4 (patch) | |
tree | 1e0e43d6c9db11930aa36e40d27c00b5f064b5a6 /include | |
parent | a43546a874890064606489f2125181a5f65adacd (diff) | |
download | system_core-319f4e2793e691a7aeabad09e463ac09df562ed4.zip system_core-319f4e2793e691a7aeabad09e463ac09df562ed4.tar.gz system_core-319f4e2793e691a7aeabad09e463ac09df562ed4.tar.bz2 |
fix a typo that prevented api_connect/api_disconnect to work
also make the original connect/disconnect inlines be no-ops.
Change-Id: Ic723e21455491c63ccbbcd01d3a47cd7ed788319
Diffstat (limited to 'include')
-rw-r--r-- | include/system/window.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/system/window.h b/include/system/window.h index 8ff464b..959bd23 100644 --- a/include/system/window.h +++ b/include/system/window.h @@ -449,13 +449,13 @@ static inline int native_window_set_usage( /* deprecated. Always returns 0. Don't call. */ static inline int native_window_connect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_CONNECT, api); + return 0; } /* deprecated. Always returns 0. Don't call. */ static inline int native_window_disconnect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_DISCONNECT, api); + return 0; } /* @@ -593,7 +593,7 @@ static inline int native_window_set_scaling_mode( static inline int native_window_api_connect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_CONNECT, api); + return window->perform(window, NATIVE_WINDOW_API_CONNECT, api); } /* @@ -605,7 +605,7 @@ static inline int native_window_api_connect( static inline int native_window_api_disconnect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_DISCONNECT, api); + return window->perform(window, NATIVE_WINDOW_API_DISCONNECT, api); } |