seL4/libsel4/include/sel4/deprecated.h

36 lines
1,010 B
C

/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef __LIBSEL4_DEPRECATED_H
#define __LIBSEL4_DEPRECATED_H
#include <sel4/arch/deprecated.h>
#include <sel4/sel4_arch/deprecated.h>
static inline int __attribute__((deprecated("use seL4_IRQHandler_SetNotification")))
seL4_IRQHandler_SetEndpoint(seL4_CPtr irq_handler, seL4_CPtr endpoint)
{
return seL4_IRQHandler_SetNotification(irq_handler, endpoint);
}
static inline void __attribute__((deprecated("use seL4_Signal")))
seL4_Notify(seL4_CPtr dest, __attribute__((unused)) seL4_Word msg)
{
seL4_Signal(dest);
}
static inline seL4_MessageInfo_t __attribute__((deprecated("Use seL4_ReplyRecv")))
seL4_ReplyWait(seL4_CPtr src, seL4_MessageInfo_t msgInfo, seL4_Word *sender)
{
return seL4_ReplyRecv(src, msgInfo, sender);
}
#endif // __LIBSEL4_DEPRECATED_H