Date: Sat, 6 Jun 2009 21:42:42 GMT From: Gabor Pali <pgj@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 163669 for review Message-ID: <200906062142.n56LggBw076776@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=163669 Change 163669 by pgj@petymeg-current on 2009/06/06 21:41:48 Add public prototypes for socket_type accessor functions Affected files ... .. //depot/projects/soc2009/pgj_libstat/src/lib/libnetstat/netstat.h#6 edit Differences ... ==== //depot/projects/soc2009/pgj_libstat/src/lib/libnetstat/netstat.h#6 (text+ko) ==== @@ -23,6 +23,7 @@ __BEGIN_DECLS const char *netstat_strerror(int); +/* "Socket" */ struct socket_type_list *netstat_stl_alloc(void); struct socket_type *netstat_stl_first(struct socket_type_list *list); struct socket_type *netstat_stl_next(struct socket_type *list); @@ -34,6 +35,13 @@ int netstat_socket(int domain, int type, int protocol, struct socket_type_list *, int flags, void *kvm_handle); + +/* Accessor functions: */ +int netstat_st_get_family(const struct socket_type *stp); +int netstat_st_get_protocol(const struct socket_type *stp); +const char *netstat_st_get_name(const struct socket_type *stp); +void *netstat_st_get_pcb(const struct socket_type *stp); + __END_DECLS #endif /* !_NETSTAT_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906062142.n56LggBw076776>