Added `glibtop_closure *' argument.
2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/glibtop-server.h (glibtop_init_func_t): Added `glibtop_closure *' argument. * include/glibtop/glibtop-backend-info.h (glibtop_backend_close_func_t): Third argument is now `glibtop_closure *'. * include/glibtop/call-vector.pl: Reflect latest API changes.
This commit is contained in:
committed by
Martin Baulig
parent
530cc00ae7
commit
dfb9d6f967
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,14 @@
|
|||||||
|
2001-04-20 Martin Baulig <baulig@suse.de>
|
||||||
|
|
||||||
|
* include/glibtop/glibtop-server.h (glibtop_init_func_t):
|
||||||
|
Added `glibtop_closure *' argument.
|
||||||
|
|
||||||
|
* include/glibtop/glibtop-backend-info.h
|
||||||
|
(glibtop_backend_close_func_t): Third argument is now
|
||||||
|
`glibtop_closure *'.
|
||||||
|
|
||||||
|
* include/glibtop/call-vector.pl: Reflect latest API changes.
|
||||||
|
|
||||||
2001-04-20 Martin Baulig <baulig@suse.de>
|
2001-04-20 Martin Baulig <baulig@suse.de>
|
||||||
|
|
||||||
* include/glibtop/*.h: Use G_BEGIN_DECLS and G_END_DECLS
|
* include/glibtop/*.h: Use G_BEGIN_DECLS and G_END_DECLS
|
||||||
|
@@ -82,16 +82,16 @@ sub parse_features_def {
|
|||||||
|
|
||||||
if ($line_fields[3] eq '') {
|
if ($line_fields[3] eq '') {
|
||||||
$func_decl_code .= sprintf
|
$func_decl_code .= sprintf
|
||||||
(qq[\t%s (*%s) (glibtop_server *, void *%s);\n], $retval, $feature, $param_decl);
|
(qq[\t%s (*%s) (glibtop_server *, glibtop_closure *%s);\n], $retval, $feature, $param_decl);
|
||||||
} elsif ($line_fields[3] eq 'array') {
|
} elsif ($line_fields[3] eq 'array') {
|
||||||
$func_decl_code .= sprintf
|
$func_decl_code .= sprintf
|
||||||
(qq[\t%s (*%s) (glibtop_server *, void *, glibtop_array *%s);\n], $retval, $feature, $param_decl);
|
(qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, glibtop_array *%s);\n], $retval, $feature, $param_decl);
|
||||||
} elsif ($line_fields[3] =~ /^array/) {
|
} elsif ($line_fields[3] =~ /^array/) {
|
||||||
$func_decl_code .= sprintf
|
$func_decl_code .= sprintf
|
||||||
(qq[\t%s (*%s) (glibtop_server *, void *, glibtop_array *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
|
(qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, glibtop_array *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
|
||||||
} else {
|
} else {
|
||||||
$func_decl_code .= sprintf
|
$func_decl_code .= sprintf
|
||||||
(qq[\t%s (*%s) (glibtop_server *, void *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
|
(qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@ typedef struct _glibtop_call_vector glibtop_call_vector;
|
|||||||
typedef int (*glibtop_backend_open_func_t) (glibtop_server *, glibtop_backend *,
|
typedef int (*glibtop_backend_open_func_t) (glibtop_server *, glibtop_backend *,
|
||||||
u_int64_t, const char **);
|
u_int64_t, const char **);
|
||||||
typedef int (*glibtop_backend_close_func_t) (glibtop_server *, glibtop_backend *,
|
typedef int (*glibtop_backend_close_func_t) (glibtop_server *, glibtop_backend *,
|
||||||
void *);
|
glibtop_closure *);
|
||||||
|
|
||||||
struct _glibtop_backend_info
|
struct _glibtop_backend_info
|
||||||
{
|
{
|
||||||
|
@@ -36,7 +36,7 @@ typedef struct _glibtop_server_info glibtop_server_info;
|
|||||||
|
|
||||||
typedef struct _glibtop_closure glibtop_closure;
|
typedef struct _glibtop_closure glibtop_closure;
|
||||||
|
|
||||||
typedef int (*glibtop_init_func_t) (glibtop_server *);
|
typedef int (*glibtop_init_func_t) (glibtop_server *, glibtop_closure *);
|
||||||
|
|
||||||
extern glibtop_init_func_t _glibtop_init_hook_s [];
|
extern glibtop_init_func_t _glibtop_init_hook_s [];
|
||||||
extern glibtop_init_func_t _glibtop_init_hook_p [];
|
extern glibtop_init_func_t _glibtop_init_hook_p [];
|
||||||
|
Reference in New Issue
Block a user