Add prototypes for functions that convert media to/from strings.
In libutil/if_media.c (moved from ifconfig.c so that they can be shared in crunched binaries)
This commit is contained in:
parent
855ac51c74
commit
de3f63a902
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_media.h,v 1.41 2004/10/16 11:11:04 dsl Exp $ */
|
||||
/* $NetBSD: if_media.h,v 1.42 2004/11/11 20:34:30 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -142,6 +142,7 @@ void ifmedia_delete_instance(struct ifmedia *, u_int);
|
||||
|
||||
/* Compute baudrate for a given media. */
|
||||
u_quad_t ifmedia_baudrate(int);
|
||||
|
||||
#endif /*_KERNEL */
|
||||
|
||||
/*
|
||||
@ -578,4 +579,16 @@ struct ifmedia_status_description {
|
||||
{ NULL, NULL } }, \
|
||||
}
|
||||
|
||||
#ifndef _KERNEL
|
||||
/* Functions for converting media to/from strings, in libutil/if_media.c */
|
||||
const char *get_media_type_string(int);
|
||||
const char *get_media_subtype_string(int);
|
||||
const char *get_media_mode_string(int);
|
||||
const char *get_media_option_string(int *);
|
||||
int get_media_mode(int, const char *);
|
||||
int get_media_subtype(int, const char *);
|
||||
int get_media_options(int, const char *, char **);
|
||||
int lookup_media_word(struct ifmedia_description *, int, const char *);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _NET_IF_MEDIA_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user