Moved the typedef to backend.h.
2000-11-26 Martin Baulig <martin@home-of-linux.org> * include/glibtop/call-vector.h (glibtop_call_vector): Moved the typedef to backend.h. * include/glibtop/backend.h (glibtop_open_backend_l): Renamed to glibtop_open_backend(), removed the `glibtop_client *' argument and made the `GError *' argument non-optional. * include/glibtop/glibtop-client.h (glibtop_client_add_backend, glibtop_client_remove_backend): New functions to add/remove a glibtop_backend to a glibtop_client. (glibtop_client_open_backend): New convenient function; calls glibtop_open_backend() and glibtop_client_add_backend().
This commit is contained in:
committed by
Martin Baulig
parent
6e4f80b8e2
commit
dfd678599f
@@ -29,6 +29,8 @@
|
||||
#include <glibtop.h>
|
||||
#include <gobject/gobject.h>
|
||||
|
||||
#include <glibtop/backend.h>
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
|
||||
#define GLIBTOP_TYPE_CLIENT (glibtop_client_get_type ())
|
||||
@@ -77,6 +79,18 @@ glibtop_client_propagate_error (glibtop_client *client, GError *error);
|
||||
void
|
||||
glibtop_client_propagate_warning (glibtop_client *client, GError *error);
|
||||
|
||||
glibtop_backend *
|
||||
glibtop_client_open_backend (glibtop_client *client, const char *backend_name,
|
||||
u_int64_t features, const char **backend_args);
|
||||
|
||||
void
|
||||
glibtop_client_add_backend (glibtop_client *client,
|
||||
glibtop_backend *backend);
|
||||
|
||||
void
|
||||
glibtop_client_remove_backend (glibtop_client *client,
|
||||
glibtop_backend *backend);
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user