[rtems commit] libnetworking: Make functions public
Sebastian Huber
sebh at rtems.org
Tue Dec 18 10:18:04 UTC 2012
Module: rtems
Branch: master
Commit: 1edaa5fe7b2440f614dc5269f31394360d1a661e
Changeset: http://git.rtems.org/rtems/commit/?id=1edaa5fe7b2440f614dc5269f31394360d1a661e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Dec 14 12:01:47 2012 +0100
libnetworking: Make functions public
Make functions rtems_bsdnet_semaphore_obtain_recursive() and
rtems_bsdnet_semaphore_release_recursive() public.
---
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 2 ++
cpukit/libnetworking/rtems/rtems_glue.c | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index b477d7d..05e54b2 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -136,6 +136,8 @@ void rtems_bsdnet_free (void *addr, int type);
void rtems_bsdnet_semaphore_obtain (void);
void rtems_bsdnet_semaphore_release (void);
+void rtems_bsdnet_semaphore_obtain_recursive (uint32_t nest_count);
+uint32_t rtems_bsdnet_semaphore_release_recursive (void);
void rtems_bsdnet_schednetisr (int n);
int rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char **namep);
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 8380e4d..95cabe4 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -111,7 +111,7 @@ rtems_bsdnet_initialize_sockaddr_in(struct sockaddr_in *addr)
memcpy(addr, &address_template, sizeof(*addr));
}
-static uint32_t
+uint32_t
rtems_bsdnet_semaphore_release_recursive(void)
{
#ifdef RTEMS_FAST_MUTEX
@@ -128,7 +128,7 @@ rtems_bsdnet_semaphore_release_recursive(void)
#endif
}
-static void
+void
rtems_bsdnet_semaphore_obtain_recursive(uint32_t nest_count)
{
uint32_t i;
More information about the vc
mailing list