]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
static inline for empty functions
authorspdfrk1 <spdfrk123456@gmail.com>
Tue, 5 Aug 2014 20:42:17 +0000 (22:42 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Aug 2014 06:57:04 +0000 (08:57 +0200)
src/descrambler/libaesdec/libaesdec.h

index f93ab015a27e9d2784fd9dfc46173ee3bcdad68f..354804af9627b353097db06d39d204be12c527e9 100755 (executable)
     void aes_decrypt_packet(void *keys, unsigned char *packet);
   #else
     // empty functions
-    void *aes_get_key_struct(void)  { return 0; };
-    void aes_free_key_struct(void *keys) { return; };
-    void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd) { return; };
-    void aes_set_even_control_word(void *keys, const unsigned char *even) { return; };
-    void aes_set_odd_control_word(void *keys, const unsigned char *odd) { return; };
-    void aes_decrypt_packet(void *keys, unsigned char *packet) { return; };
+    static inline void *aes_get_key_struct(void)  { return 0; };
+    static inline void aes_free_key_struct(void *keys) { return; };
+    static inline void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd) { return; };
+    static inline void aes_set_even_control_word(void *keys, const unsigned char *even) { return; };
+    static inline void aes_set_odd_control_word(void *keys, const unsigned char *odd) { return; };
+    static inline void aes_decrypt_packet(void *keys, unsigned char *packet) { return; };
   #endif 
 #endif /* LIBAESDEC_H_ */