From: martin-s Date: Tue, 6 Jan 2009 18:59:56 +0000 (+0000) Subject: Add:Core:More callbacks X-Git-Tag: navit-0.5.0.5194svn~3244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05843f499f229506f3e7daff267998e051e4fadb;p=profile%2Fivi%2Fnavit.git Add:Core:More callbacks git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1914 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/callback.h b/navit/navit/callback.h index 3d437e2..99c3add 100644 --- a/navit/navit/callback.h +++ b/navit/navit/callback.h @@ -116,6 +116,14 @@ static inline void callback_call_1(struct callback *cb, void *p1) callback_call(cb, 1, p); } +static inline void callback_call_2(struct callback *cb, void *p1, void *p2) +{ + void *p[2]; + p[0]=p1; + p[1]=p2; + callback_call(cb, 2, p); +} + static inline void callback_list_call_0(struct callback_list *l) { callback_list_call(l, 0, NULL);