{"action":"created","issue":{"url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/462","labels_url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/462/comments","events_url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/462/events","html_url":"https://github.com/ochafik/nativelibs4java/issues/462","id":23163578,"number":462,"title":"How can I translate an LPVOID parameter in JAVA","user":{"login":"vhugo006","id":6013247,"avatar_url":"https://avatars.githubusercontent.com/u/6013247?v=3","gravatar_id":"","url":"https://api.github.com/users/vhugo006","html_url":"https://github.com/vhugo006","followers_url":"https://api.github.com/users/vhugo006/followers","following_url":"https://api.github.com/users/vhugo006/following{/other_user}","gists_url":"https://api.github.com/users/vhugo006/gists{/gist_id}","starred_url":"https://api.github.com/users/vhugo006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhugo006/subscriptions","organizations_url":"https://api.github.com/users/vhugo006/orgs","repos_url":"https://api.github.com/users/vhugo006/repos","events_url":"https://api.github.com/users/vhugo006/events{/privacy}","received_events_url":"https://api.github.com/users/vhugo006/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ochafik/nativelibs4java/labels/JNAerator","name":"JNAerator","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-11-22T19:55:47Z","updated_at":"2015-03-18T10:02:50Z","closed_at":"2015-03-18T10:02:50Z","body":"When generating source code from JNAErator several callback methods not compile because the input parameters are LPVOID. Thus, when using Pointer.getPeer () method, which receives org.bridj.Pointer <T> as parameter, the code throws compilation errors.\r\n\r\nHow can I represent this variable in this context?\r\n\r\n```\r\n\t\t/**\r\n\t\t * Data analysis via the callback.<br>\r\n\t\t * Original signature : <code>BOOL CLIENT_ParseDataByCallback(LPVOID, DWORD, fAnalyzerData, LDWORD)</code><br>\r\n\t\t */\r\n\t\tpublic static int CLIENT_ParseDataByCallback(DhConfigSdkLibrary.LPVOID lpInBuffer, int dwInBufferSize, DhConfigSdkLibrary.fAnalyzerData cbAnalyzer, DhConfigSdkLibrary.LDWORD dwUser) {\r\n\t\t\treturn CLIENT_ParseDataByCallback(Pointer.getPeer(lpInBuffer), dwInBufferSize, Pointer.getPeer(cbAnalyzer), Pointer.getPeer(dwUser));\r\n\t\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/comments/82862721","html_url":"https://github.com/ochafik/nativelibs4java/issues/462#issuecomment-82862721","issue_url":"https://api.github.com/repos/ochafik/nativelibs4java/issues/462","id":82862721,"user":{"login":"ochafik","id":273860,"avatar_url":"https://avatars.githubusercontent.com/u/273860?v=3","gravatar_id":"","url":"https://api.github.com/users/ochafik","html_url":"https://github.com/ochafik","followers_url":"https://api.github.com/users/ochafik/followers","following_url":"https://api.github.com/users/ochafik/following{/other_user}","gists_url":"https://api.github.com/users/ochafik/gists{/gist_id}","starred_url":"https://api.github.com/users/ochafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochafik/subscriptions","organizations_url":"https://api.github.com/users/ochafik/orgs","repos_url":"https://api.github.com/users/ochafik/repos","events_url":"https://api.github.com/users/ochafik/events{/privacy}","received_events_url":"https://api.github.com/users/ochafik/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T10:02:50Z","updated_at":"2015-03-18T10:02:50Z","body":"Sorry I didn't reply earlier (missed second question), the issue here is parsing of CALLBACK, which JNAerator doesn't know about. Define it to an empty string `-DCALLBACK=` and JNAerator parses the callback just fine.\r\n\r\nPlease ask further non-bug questions on the mailing list :-)\r\n\r\nCheers"}}