summaryrefslogtreecommitdiff
path: root/components/services/install/lib/eazel-install-public.h
diff options
context:
space:
mode:
authorEskil Heyn Olsen <eskil@src.gnome.org>2000-06-02 10:10:12 +0000
committerEskil Heyn Olsen <eskil@src.gnome.org>2000-06-02 10:10:12 +0000
commit11ea07b34274ec197c1722f9fa09569ee0b77357 (patch)
treeaea5685ad19926c6279227ddd88be1afcb23c99f /components/services/install/lib/eazel-install-public.h
parent5bcb019f4b9fa08c928cc9ee162a7edc45994a56 (diff)
downloadnautilus-11ea07b34274ec197c1722f9fa09569ee0b77357.tar.gz
Docs with my scetches on how to redo the rpm-glue to make
* components/services/docs/installer-dep-check: Docs with my scetches on how to redo the rpm-glue to make eazel-install-lib autofetch deps. * components/services/install/command-line/eazel-alt-install.c: (eazel_download_progress): Borked, but compiles again. Will update when libinstall stabilizes. * components/services/install/lib/eazel-install-object.c: (gtk_marshal_NONE__POINTER_ENUM_POINTER), (eazel_install_class_initialize), (eazel_install_emit_download_failed), (eazel_install_emit_install_failed), (eazel_install_emit_uninstall_failed): Revamped the install_failed signal to take a PackageData object instead of char * name. * components/services/install/lib/eazel-install-protocols.c: (http_fetch_remote_file): * components/services/install/lib/eazel-install-public.h: * components/services/install/lib/eazel-install-rpm-glue.c: (install_new_packages), (download_a_package), (download_all_packages), (install_all_packages), (uninstall_packages), (uninstall_a_package), (build_packagedata_list_from_deps), (do_rpm_install), (do_rpm_uninstall), (ensure_deps_are_fetched): * components/services/install/lib/eazel-install-types.c: (categorydata_destroy_foreach), (categorydata_destroy), (packagedata_new_from_rpm_header), (packagedata_destroy_foreach), (packagedata_destroy): * components/services/install/lib/eazel-install-types.h: Doing a lot of hacking to prepare for the autofetch stuff. * nautilus-installer/src/prescript: * nautilus-installer/src/HACKING: * nautilus-installer/src/Makefile: * nautilus-installer/src/Makefile.am: * nautilus-installer/src/callbacks.c: (druid_cancel), (begin_install), (druid_finish), (prep_install), (set_images): * nautilus-installer/src/installer.c: (append_string_to_window_list), (download_failed), (install_failed_foreach), (requeue), (install_failed), (gen_report), (installer): * nautilus-installer/src/link.sh: * nautilus-installer/src/main.c: Hacking in the installer. This one is borked sine I'm trying to figure out the right scheme of reported dep fails. Actually, I want the lib to autofetch deps by option, instead of failing them Also added stuff to link.sh, so it builds static from scratch, strips gzips and adds prescript to the gzexe file. So if you build using link.sh, you get a 644 binary which when executed using sh ./nautilus-installer prompts for root password and does the magic. Easier for newbies. * components/services/time/idl/Makefile.am: * components/services/install/idl//Makefile.am: * components/services/time/Makefile.am: * components/services/install/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/idl/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * configure.in: * nautilus.spec.in: * po/POTFILES.in: * src/Makefile.am: Loads of makefile fixing to make make dist and rpm -ta work.
Diffstat (limited to 'components/services/install/lib/eazel-install-public.h')
-rw-r--r--components/services/install/lib/eazel-install-public.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/components/services/install/lib/eazel-install-public.h b/components/services/install/lib/eazel-install-public.h
index 8c74e58bb..65d89da01 100644
--- a/components/services/install/lib/eazel-install-public.h
+++ b/components/services/install/lib/eazel-install-public.h
@@ -62,9 +62,17 @@ struct _EazelInstallClass
void (*download_progress) (char *file, int amount, int total);
void (*install_progress) (char *name, int amount, int total);
- void (*download_failed) (char *name);
- void (*install_failed) (char *name);
- void (*uninstall_failed) (char *name);
+ /*
+ if the set URLType is PROTOCOL_HTTP, info is a HTTPError struc
+ */
+ void (*download_failed) (char *name, gpointer info);
+ /*
+ if RPM_FAIL is RPM_SRC_NOT_SUPPORTED, info is NULL
+ RPM_DEP_FAIL, info is a GSList of required packages (PackageData objects)
+ RPM_NOT_AN_RPM, info is NULL
+ */
+ void (*install_failed) (PackageData *pd, RPM_FAIL code, gpointer info);
+ void (*uninstall_failed) (PackageData *pd);
#ifndef STANDALONE
gpointer servant_vepv;
#endif /* STANDALONE */
@@ -104,11 +112,14 @@ void eazel_install_emit_download_progress (EazelInstall *service,
int amount,
int total);
void eazel_install_emit_download_failed (EazelInstall *service,
- const char *name);
+ const char *name,
+ const gpointer info);
void eazel_install_emit_install_failed (EazelInstall *service,
- const char *name);
+ const PackageData *pd,
+ RPM_FAIL code,
+ const gpointer info);
void eazel_install_emit_uninstall_failed (EazelInstall *service,
- const char *name);
+ const PackageData *pd);
/* This is in flux */
void eazel_install_fetch_pockage_list (EazelInstall *service);