mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Conform new events API type safety
This commit is contained in:
parent
c5aeaa3446
commit
678ce54bfc
@ -48,7 +48,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
short event_flag = 0;
|
short event_flag = 0;
|
||||||
isc_callback ast_routine (char *, short, char *);
|
void ast_routine (void *, USHORT, const UCHAR *);
|
||||||
|
|
||||||
int main(ARG(int, argc), ARG(char **, argv))
|
int main(ARG(int, argc), ARG(char **, argv))
|
||||||
ARGLIST(int argc)
|
ARGLIST(int argc)
|
||||||
@ -132,7 +132,7 @@ ARGLIST(char **argv)
|
|||||||
** que_events returns ast_returns value
|
** que_events returns ast_returns value
|
||||||
*/
|
*/
|
||||||
if(isc_que_events(status, &DB, &event_id, length,
|
if(isc_que_events(status, &DB, &event_id, length,
|
||||||
event_buffer, (isc_callback) ast_routine, result_buffer))
|
event_buffer, ast_routine, result_buffer))
|
||||||
{ERREXIT(status, 1)};
|
{ERREXIT(status, 1)};
|
||||||
|
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ ARGLIST(char **argv)
|
|||||||
/* Re-queue for the next event */
|
/* Re-queue for the next event */
|
||||||
|
|
||||||
if (isc_que_events(status, &DB, &event_id, length,
|
if (isc_que_events(status, &DB, &event_id, length,
|
||||||
event_buffer, (isc_callback) ast_routine, result_buffer))
|
event_buffer, ast_routine, result_buffer))
|
||||||
{ERREXIT(status, 1)};
|
{ERREXIT(status, 1)};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,12 +220,12 @@ ARGLIST(char **argv)
|
|||||||
** event will land us here . PLus we get called once when the
|
** event will land us here . PLus we get called once when the
|
||||||
** program first starts.
|
** program first starts.
|
||||||
*/
|
*/
|
||||||
isc_callback ast_routine(ARG(char *, result),
|
void ast_routine(ARG(void *, result),
|
||||||
ARG(short, length),
|
ARG(USHORT, length),
|
||||||
ARG(char *, updated))
|
ARG(const UCHAR *, updated))
|
||||||
ARGLIST(char *result)
|
ARGLIST(void *result)
|
||||||
ARGLIST(char *updated)
|
ARGLIST(const UCHAR *updated)
|
||||||
ARGLIST(short length)
|
ARGLIST(USHORT length)
|
||||||
{
|
{
|
||||||
/* Set the global event flag */
|
/* Set the global event flag */
|
||||||
|
|
||||||
@ -234,6 +234,5 @@ ARGLIST(short length)
|
|||||||
printf("ast routine was called\n");
|
printf("ast routine was called\n");
|
||||||
/* Copy the updated buffer to the result buffer */
|
/* Copy the updated buffer to the result buffer */
|
||||||
while (length--)
|
while (length--)
|
||||||
*result++ = *updated++;
|
*(UCHAR*)result++ = *updated++;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user