diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mdso/mdso.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index a0ecb0e..7927896 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -87,6 +87,7 @@ struct mdso_fd_ctx { }; struct mdso_object { + const char * name; void * addr; size_t size; char * mapstrs; @@ -159,7 +160,7 @@ mdso_api int mdso_set_driver_fdctx (struct mdso_driver_ctx *, const struct /* helper api */ mdso_api FILE*mdso_create_archive (const struct mdso_driver_ctx *, const char * arname); mdso_api int mdso_create_asmsrc (const struct mdso_driver_ctx *, const char * asmname); -mdso_api FILE*mdso_create_object (const struct mdso_driver_ctx *, const char * objname); +mdso_api int mdso_create_object (const struct mdso_driver_ctx *, struct mdso_object *); /* utility api */ mdso_api int mdso_main (int, char **, char **, const struct mdso_fd_ctx *); @@ -185,9 +186,9 @@ mdso_api int mdso_asmgen_dsometa (const struct mdso_driver_ctx *, int); mdso_api int mdso_asmgen_symentry (const struct mdso_driver_ctx *, const char *, int); mdso_api int mdso_asmgen_symfn (const struct mdso_driver_ctx *, const char *, int); -mdso_api int mdso_objgen_dsometa (const struct mdso_driver_ctx *, FILE *, struct mdso_object *); -mdso_api int mdso_objgen_symentry (const struct mdso_driver_ctx *, const char *, FILE *, struct mdso_object *); -mdso_api int mdso_objgen_symfn (const struct mdso_driver_ctx *, const char *, FILE *, struct mdso_object *); +mdso_api int mdso_objgen_dsometa (const struct mdso_driver_ctx *, struct mdso_object *); +mdso_api int mdso_objgen_symentry (const struct mdso_driver_ctx *, const char *, struct mdso_object *); +mdso_api int mdso_objgen_symfn (const struct mdso_driver_ctx *, const char *, struct mdso_object *); mdso_api int mdso_argen_common (const struct mdso_driver_ctx *, const char **, const int *, |