1998-07-29 Martin Baulig <martin@home-of-linux.org> * guile/ChangeLog: New file. * features.def: New format - now includes type of return value and parameters. * lib/lib.awk: Changed to use new `features.def'. * sysdeps/guile/guile.awk: Dito; * sysdeps/guile/names/guile-names.awk: Dito. * libgtopConf.sh.in: Added `LIBGTOP_NAMES_LIBS', `LIBGTOP_NAMES_INCS', `LIBGTOP_GUILE_NAMES_LIBS', `LIBGTOP_GUILE_NAMES_INCS', `LIBGTOP_MAJOR_VERSION', `LIBGTOP_MINOR_VERSION' `LIBGTOP_VERSION', `libgtop_sysdeps_dir'. * acinclude.m4 (AC_LC_SYSDEPS): Removed since this has been replaced with `GNOME_LIBGTOP_SYSDEPS' long ago. * LIBGTOP-VERSION: New file. * */Makefile.am (INCLUDES): Removed; now defined in `configure.in'. * sysdeps/names/mountlist.c: New file. * lib/{init, open}.c (GTOP_SERVER): Renamed to `LIBGTOP_SERVER'. * configure.in (INCLUDES): Added definition. (libgtop_want_names): Always true; `libgtop_names.la' is now always created since some other programs rely upon it - but have to use `LIBGTOP_NAMES_LIBS' and `LIBGTOP_NAMES_INCS' to use it in your application. (libgtop_want_guile_names): Always true; but you have to use `LIBGTOP_GUILE_NAMES_LIBS' and `LIBGTOP_GUILE_NAMES_INCS' to use it in your application. (LIBGTOP_LIBS): Removed `-lgtop_names' and `-lgtop_guile_names'. (LIBGTOP_NAMES_LIBS): New variable. Use it to link your application with the names interface. (LIBGTOP_NAMES_INCS): New variable. Also #defines `GLIBTOP_NAMES' which is now required if your application wants to use the names interface. (LIBGTOP_GUILE_NAMES_LIBS): New variable. Use it to link your application with the guile names interface. (LIBGTOP_GUILE_NAMES_INCS): New variable. Also #defines `GLIBTOP_NAMES' and `GLIBTOP_GUILE_NAMES' which are now required if your application wants to use the guile names interface.
99 lines
2.8 KiB
C
99 lines
2.8 KiB
C
/* $Id$ */
|
|
|
|
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
|
This file is part of the Gnome Top Library.
|
|
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
|
|
|
The Gnome Top Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
The Gnome Top Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
#ifndef __GLIBTOP_MOUNTLIST_H__
|
|
#define __GLIBTOP_MOUNTLIST_H__
|
|
|
|
#include <glibtop.h>
|
|
#include <glibtop/global.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
#define GLIBTOP_MOUNTLIST_NUMBER 0
|
|
#define GLIBTOP_MOUNTLIST_TOTAL 1
|
|
#define GLIBTOP_MOUNTLIST_SIZE 2
|
|
|
|
#define GLIBTOP_MAX_MOUNTLIST 3
|
|
|
|
#define GLIBTOP_MOUNTENTRY_LEN 80
|
|
|
|
typedef struct _glibtop_mountentry glibtop_mountentry;
|
|
|
|
typedef struct _glibtop_mountlist glibtop_mountlist;
|
|
|
|
struct _glibtop_mountentry
|
|
{
|
|
char devname [GLIBTOP_MOUNTENTRY_LEN+1];
|
|
char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
|
|
char type [GLIBTOP_MOUNTENTRY_LEN+1];
|
|
dev_t dev;
|
|
};
|
|
|
|
struct _glibtop_mountlist
|
|
{
|
|
unsigned long flags,
|
|
number, /* GLIBTOP_MOUNTLIST_NUMBER */
|
|
total, /* GLIBTOP_MOUNTLIST_TOTAL */
|
|
size; /* GLIBTOP_MOUNTLIST_SIZE */
|
|
};
|
|
|
|
#define glibtop_get_mountlist(mountlist,all_fs) glibtop_get_mountlist_l(glibtop_global_server, mountlist, all_fs)
|
|
|
|
#define glibtop_get_mountlist_r glibtop_get_mountlist_s
|
|
|
|
extern glibtop_mountentry *glibtop_get_mountlist_l __P((glibtop *, glibtop_mountlist *, int));
|
|
|
|
extern glibtop_mountentry *glibtop_get_mountlist_s __P((glibtop *, glibtop_mountlist *, int));
|
|
|
|
#ifdef HAVE_GUILE
|
|
|
|
/* You need to link with -lgtop_guile to get this stuff here. */
|
|
|
|
extern SCM glibtop_guile_get_mountlist __P((SCM));
|
|
|
|
#endif
|
|
|
|
#ifdef GLIBTOP_GUILE_NAMES
|
|
|
|
/* You need to link with -lgtop_guile_names to get this stuff here. */
|
|
|
|
extern SCM glibtop_guile_names_mountlist __P((void));
|
|
extern SCM glibtop_guile_types_mountlist __P((void));
|
|
extern SCM glibtop_guile_labels_mountlist __P((void));
|
|
extern SCM glibtop_guile_descriptions_mountlist __P((void));
|
|
|
|
#endif
|
|
|
|
#ifdef GLIBTOP_NAMES
|
|
|
|
/* You need to link with -lgtop_names to get this stuff here. */
|
|
|
|
extern const char *glibtop_names_mountlist [];
|
|
extern const unsigned glibtop_types_mountlist [];
|
|
extern const char *glibtop_labels_mountlist [];
|
|
extern const char *glibtop_descriptions_mountlist [];
|
|
|
|
#endif
|
|
|
|
__END_DECLS
|
|
|
|
#endif
|