Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / resource / csdk / connectivity / lib / libcoap-4.1.1 / include / coap / t_list.h
@@ -91,30 +91,30 @@ struct list
     (struct_ptr)->LIST_CONCAT(name,_list) = NULL;           \
   }
 
-static inline void *
+INLINE_API void *
 list_head(list_t the_list)
 {
     return *the_list;
 }
 
-static inline void list_remove(list_t the_list, void *item)
+INLINE_API void list_remove(list_t the_list, void *item)
 {
     if (list_head(the_list))
         LL_DELETE(*(struct list **)the_list, (struct list *)item);
 }
 
-static inline void list_add(list_t the_list, void *item)
+INLINE_API void list_add(list_t the_list, void *item)
 {
     list_remove(the_list, item);
     LL_APPEND(*(struct list **)the_list, (struct list *)item);
 }
 
-static inline void list_push(list_t the_list, void *item)
+INLINE_API void list_push(list_t the_list, void *item)
 {
     LL_PREPEND(*(struct list **)the_list, (struct list *)item);
 }
 
-static inline void *
+INLINE_API void *
 list_pop(list_t the_list)
 {
     struct list *l;
@@ -125,7 +125,7 @@ list_pop(list_t the_list)
     return l;
 }
 
-static inline void list_insert(list_t the_list, void *previtem, void *newitem)
+INLINE_API void list_insert(list_t the_list, void *previtem, void *newitem)
 {
     if (previtem == NULL)
     {
@@ -138,7 +138,7 @@ static inline void list_insert(list_t the_list, void *previtem, void *newitem)
     }
 }
 
-static inline void *
+INLINE_API void *
 list_item_next(void *item)
 {
     return item == NULL ? NULL : ((struct list *) item)->next;