]> git.draconx.ca Git - upkg.git/log
upkg.git
13 years agoupkg: Resolve hierarchical object references.
Nick Bowler [Thu, 3 Mar 2011 01:22:53 +0000 (20:22 -0500)]
upkg: Resolve hierarchical object references.

This doesn't actually do anything useful yet, but it's a start.

13 years agolibupkg: Make upkg_export_find less useless.
Nick Bowler [Tue, 13 Jul 2010 23:14:27 +0000 (19:14 -0400)]
libupkg: Make upkg_export_find less useless.

Add a 'parent' parameter which should allow objects to be uniquely
specified.

13 years agolibupkg: Simplify handling of format assertions.
Nick Bowler [Thu, 3 Mar 2011 01:07:31 +0000 (20:07 -0500)]
libupkg: Simplify handling of format assertions.

13 years agoupkg: Add support for controlling which package is acted upon.
Nick Bowler [Wed, 2 Mar 2011 05:31:57 +0000 (00:31 -0500)]
upkg: Add support for controlling which package is acted upon.

Instead of using the last -f option, allow the user to specify one or
more packages explicitly.  This will eventually be extended to allow
specifying individual objects.

13 years agoupkg: Improve error reporting during package load.
Nick Bowler [Wed, 2 Mar 2011 04:55:06 +0000 (23:55 -0500)]
upkg: Improve error reporting during package load.

13 years agognulib: Update to latest version.
Nick Bowler [Sun, 27 Feb 2011 16:44:01 +0000 (11:44 -0500)]
gnulib: Update to latest version.

13 years agoupkg: Update man page.
Nick Bowler [Wed, 7 Jul 2010 00:34:15 +0000 (20:34 -0400)]
upkg: Update man page.

13 years agoengine: Define the exit method.
Nick Bowler [Wed, 7 Jul 2010 00:21:43 +0000 (20:21 -0400)]
engine: Define the exit method.

Apparently, libltdl falls back to looking up the "unadorned" symbol
names if the _LTX_ symbols are not found.  This means it finds exit in
the C library instead of returning an error, with obvious consequences.

13 years agognulib: Remove link-warning.h from repository.
Nick Bowler [Tue, 27 Apr 2010 14:58:47 +0000 (10:58 -0400)]
gnulib: Remove link-warning.h from repository.

This was committed by accident earlier.

14 years agobuild: Abort configure if specified module library is not found.
Nick Bowler [Wed, 3 Feb 2010 19:40:20 +0000 (14:40 -0500)]
build: Abort configure if specified module library is not found.

If the user specifies, say, --with-modlib=modplug, it is not right to
use any other module library.  We also avoid checking for unrequested
module libraries.

14 years agoupkg: Don't crash if the specified package does not exist.
Nick Bowler [Wed, 3 Feb 2010 02:50:39 +0000 (21:50 -0500)]
upkg: Don't crash if the specified package does not exist.

Currently, g_type_module_use(pkg) will succeed even if the package does
not exist, due to the existence of shared-object-only packages.  So the
caller must look inside the UPkg structure to see if anything was
actually opened.  In the future, pending tools to create the things,
such packages probably won't exist and this hack can be removed.

14 years agomusic: Add simple file type detection to the dummy module.
Nick Bowler [Mon, 1 Feb 2010 23:30:04 +0000 (18:30 -0500)]
music: Add simple file type detection to the dummy module.

The dummy module can be a bit smarter so that the file extension of
exported data is correct.  Add support for xm, it and s3m.

14 years agoupkg: Specify package files as options.
Nick Bowler [Thu, 10 Dec 2009 04:34:13 +0000 (23:34 -0500)]
upkg: Specify package files as options.

Now, one must run "upkg -f foo.u" where previously one would run "upkg
foo.u".  This new syntax allows multiple packages to be specified on the
command line for purposes of dependency resolution and (soon) extraction
of specific objects.

The package operated upon is the last one specified in this manner.

14 years agoupkg: Don't unref packages, since gobject does not allow this.
Nick Bowler [Thu, 10 Dec 2009 04:32:07 +0000 (23:32 -0500)]
upkg: Don't unref packages, since gobject does not allow this.

14 years agolibupkg: Add explicit conversions to stdio wrappers.
Nick Bowler [Sun, 31 Jan 2010 21:53:13 +0000 (16:53 -0500)]
libupkg: Add explicit conversions to stdio wrappers.

Some C libraries provide a macro version of feof which does not convert
the provided pointer to FILE * before dereferencing it.  Ordinarily,
this conversion would occur automatically since feof's prototype
specifies FILE *, but this is suppressed in the macro case.

It is not clear to me whether this behaviour is consistent with the
requirements of the C standard.  However, after encountering at least
two implementations which do this, explicit conversions seem simple
enough.

14 years agobuild: Don't use a semicolon after sed's 't' command.
Nick Bowler [Sun, 31 Jan 2010 21:52:05 +0000 (16:52 -0500)]
build: Don't use a semicolon after sed's 't' command.

Some (namely, FreeBSD's) sed implementations fail when a semicolon is
used after a 't' command.  This behaviour appears to be acceptable
according to POSIX, so appease these implementations by passing extra
-e options to sed.

14 years agopackage: Move package search code to the VFS.
Nick Bowler [Tue, 8 Dec 2009 05:58:38 +0000 (00:58 -0500)]
package: Move package search code to the VFS.

14 years agopackage: Make the VFS directly open the package file.
Nick Bowler [Tue, 8 Dec 2009 05:54:58 +0000 (00:54 -0500)]
package: Make the VFS directly open the package file.

This is in preparation for moving the package search mechanism to the
VFS, as it nicely allows us to ensure that candidate packages actually
open successfully.

14 years agopackage: Get rid of separate mechanisms for opening packages.
Nick Bowler [Mon, 7 Dec 2009 08:01:06 +0000 (03:01 -0500)]
package: Get rid of separate mechanisms for opening packages.

Remove u_pkg_new_by_name and u_pkg_new_by_file, replacing them with
one function, u_pkg_open, that takes just a package name.  Named files
can now be part of the package search just like any other package.  This
should allow cool things like listing dependency packages on the upkg
command line.

14 years agobuild: Re-arrange CFLAGS/LDFLAGS a bit.
Nick Bowler [Mon, 7 Dec 2009 07:57:27 +0000 (02:57 -0500)]
build: Re-arrange CFLAGS/LDFLAGS a bit.

14 years agognulib: Update to latest version.
Nick Bowler [Mon, 7 Dec 2009 04:26:09 +0000 (23:26 -0500)]
gnulib: Update to latest version.

14 years agopack: Use a user-configurable macro to select 64 bit packing.
Nick Bowler [Fri, 18 Sep 2009 15:05:29 +0000 (11:05 -0400)]
pack: Use a user-configurable macro to select 64 bit packing.

14 years agolibupkg: Remove checks for an unsigned quantity being less than 0.
Nick Bowler [Fri, 18 Sep 2009 14:43:10 +0000 (10:43 -0400)]
libupkg: Remove checks for an unsigned quantity being less than 0.

14 years agouobject: Move source files into the uobject directory.
Nick Bowler [Fri, 18 Sep 2009 14:40:22 +0000 (10:40 -0400)]
uobject: Move source files into the uobject directory.

14 years agoupkg: Update verbosity behaviour for --info.
Nick Bowler [Fri, 18 Sep 2009 13:46:42 +0000 (09:46 -0400)]
upkg: Update verbosity behaviour for --info.

We now have four levels of verbosity:
  0 - Display only header information.
  1 - Also display information on individual exports.
  2 - Also display expanded flag information.
  3 - Also display information on individual names.

14 years agopackage: Allow opening by filename in addition to package name.
Nick Bowler [Wed, 16 Sep 2009 14:05:38 +0000 (10:05 -0400)]
package: Allow opening by filename in addition to package name.

Ultimately, libupkg will be merged into libuobject.  This is step one of
that merger, and doesn't affect very much.

14 years agolibupkg: Add a destructor that is called on package close.
Nick Bowler [Wed, 16 Sep 2009 04:37:50 +0000 (00:37 -0400)]
libupkg: Add a destructor that is called on package close.

This fixes mistake where fclose was called unconditionally in
upkg_close.

14 years agolibupkg: Parameterise I/O functions to allow custom streams.
Nick Bowler [Wed, 16 Sep 2009 01:05:32 +0000 (21:05 -0400)]
libupkg: Parameterise I/O functions to allow custom streams.

14 years agobuild: Pass PKGDATADIR to compiled sources.
Nick Bowler [Tue, 15 Sep 2009 23:33:32 +0000 (19:33 -0400)]
build: Pass PKGDATADIR to compiled sources.

14 years agopackage: Add initial support for package search.
Nick Bowler [Tue, 15 Sep 2009 02:43:49 +0000 (22:43 -0400)]
package: Add initial support for package search.

14 years agopack: Relax licensing of integer serialisation routines.
Nick Bowler [Tue, 15 Sep 2009 00:24:11 +0000 (20:24 -0400)]
pack: Relax licensing of integer serialisation routines.

14 years agoupkg: Add a simple man page.
Nick Bowler [Tue, 8 Sep 2009 17:48:43 +0000 (13:48 -0400)]
upkg: Add a simple man page.

14 years agoupkg: Add license information to --version output.
Nick Bowler [Mon, 7 Sep 2009 21:37:20 +0000 (17:37 -0400)]
upkg: Add license information to --version output.

14 years agolicense: Add permissive license to build related source files.
Nick Bowler [Mon, 7 Sep 2009 21:32:15 +0000 (17:32 -0400)]
license: Add permissive license to build related source files.

14 years agolicense: Upgrade to GPL version 3 or later.
Nick Bowler [Mon, 7 Sep 2009 21:30:36 +0000 (17:30 -0400)]
license: Upgrade to GPL version 3 or later.

14 years agobuild: Add uobject/package.h to Makefile.am
Nick Bowler [Mon, 7 Sep 2009 20:58:42 +0000 (16:58 -0400)]
build: Add uobject/package.h to Makefile.am

14 years agobuild: Automatically fetch Gnulib from git when running autogen.sh.
Nick Bowler [Mon, 7 Sep 2009 19:55:41 +0000 (15:55 -0400)]
build: Automatically fetch Gnulib from git when running autogen.sh.

14 years agobuild: Add libuobject.pc
Nick Bowler [Fri, 28 Aug 2009 04:36:02 +0000 (00:36 -0400)]
build: Add libuobject.pc

14 years agoupkg: Support UOBJECT_MODULE_PATH to add library search paths.
Nick Bowler [Fri, 28 Aug 2009 04:35:07 +0000 (00:35 -0400)]
upkg: Support UOBJECT_MODULE_PATH to add library search paths.

14 years agoMerge branch 'uobject' of git://git.draconx.ca/upkg into uobject
Nick Bowler [Sat, 8 Aug 2009 16:59:39 +0000 (12:59 -0400)]
Merge branch 'uobject' of git://git.draconx.ca/upkg into uobject

14 years agoupkg: Print export flags.
Nick Bowler [Sat, 8 Aug 2009 16:02:46 +0000 (12:02 -0400)]
upkg: Print export flags.

14 years agouobject: Install modules to a more appropriate location.
Nick Bowler [Sat, 8 Aug 2009 07:15:45 +0000 (03:15 -0400)]
uobject: Install modules to a more appropriate location.

14 years agoDon't bail out if a read fails but there's still data available.
Nick Bowler [Sat, 8 Aug 2009 06:16:40 +0000 (02:16 -0400)]
Don't bail out if a read fails but there's still data available.

14 years agouobject: Namespace changes.
Nick Bowler [Fri, 7 Aug 2009 05:22:09 +0000 (01:22 -0400)]
uobject: Namespace changes.

Change uobject to u_object, and export all symbols starting with u_.
The library is starting to include package stuff which will use the
u_pkg prefix.

14 years agomodule: Split out the GTypeModule subclass.
Nick Bowler [Fri, 7 Aug 2009 05:11:11 +0000 (01:11 -0400)]
module: Split out the GTypeModule subclass.

14 years agopack: Fix signed unpacking to not modify the input.
Nick Bowler [Tue, 4 Aug 2009 22:06:57 +0000 (18:06 -0400)]
pack: Fix signed unpacking to not modify the input.

Also change the unpack functions to use pointer to const unsigned char
so that this sort of problem doesn't happen in the future.

14 years agoconfigure: add gthread support to glib.m4.
Nick Bowler [Sat, 1 Aug 2009 20:14:31 +0000 (16:14 -0400)]
configure: add gthread support to glib.m4.

14 years agouobject: Don't expose symbols that don't start with uobject.
Nick Bowler [Sat, 1 Aug 2009 03:32:13 +0000 (23:32 -0400)]
uobject: Don't expose symbols that don't start with uobject.

14 years agouobject: remove pointless private module.h.
Nick Bowler [Sat, 1 Aug 2009 03:25:35 +0000 (23:25 -0400)]
uobject: remove pointless private module.h.

14 years agouobject: Add some descriptions of the loadable/exportable interfaces.
Nick Bowler [Fri, 24 Jul 2009 16:10:57 +0000 (12:10 -0400)]
uobject: Add some descriptions of the loadable/exportable interfaces.

14 years agouobject: More namespace cleanups.
Nick Bowler [Fri, 24 Jul 2009 16:08:38 +0000 (12:08 -0400)]
uobject: More namespace cleanups.

14 years agouobject: Clean up the module loader namespace.
Nick Bowler [Fri, 24 Jul 2009 15:52:11 +0000 (11:52 -0400)]
uobject: Clean up the module loader namespace.

14 years agouobject: Move headers into a separate (installable) directory.
Nick Bowler [Fri, 24 Jul 2009 15:37:16 +0000 (11:37 -0400)]
uobject: Move headers into a separate (installable) directory.

14 years agoAdd all-permissive license to autoconf macros.
Nick Bowler [Mon, 20 Jul 2009 00:13:14 +0000 (20:13 -0400)]
Add all-permissive license to autoconf macros.

14 years agouobject: Split uobject stuff into its own library.
Nick Bowler [Sun, 19 Jul 2009 21:12:12 +0000 (17:12 -0400)]
uobject: Split uobject stuff into its own library.

It is likely that libupkg will be merged into this library soon.

14 years agoconfigure: Implement glib checking macro that actually links a test program.
Nick Bowler [Sun, 19 Jul 2009 21:08:19 +0000 (17:08 -0400)]
configure: Implement glib checking macro that actually links a test program.

14 years agouobject: Take a package/index tuple instead of a upkg_file for deserialize.
Nick Bowler [Fri, 17 Jul 2009 20:10:04 +0000 (16:10 -0400)]
uobject: Take a package/index tuple instead of a upkg_file for deserialize.

14 years agomusic: don't forget to propagate object finalize.
Nick Bowler [Fri, 17 Jul 2009 20:09:24 +0000 (16:09 -0400)]
music: don't forget to propagate object finalize.

14 years agolibupkg: Add signed integer unpacking to fix incorrect signedness issue.
Nick Bowler [Thu, 16 Jul 2009 21:10:22 +0000 (17:10 -0400)]
libupkg: Add signed integer unpacking to fix incorrect signedness issue.

14 years agobuild: Use automake silent rules.
Nick Bowler [Thu, 16 Jul 2009 19:03:17 +0000 (15:03 -0400)]
build: Use automake silent rules.

14 years agoupkg: fix NULL dereference if upkg_export_class fails.
Nick Bowler [Thu, 16 Jul 2009 01:59:18 +0000 (21:59 -0400)]
upkg: fix NULL dereference if upkg_export_class fails.

14 years agoAdd copyright notices.
Nick Bowler [Tue, 14 Jul 2009 23:55:00 +0000 (19:55 -0400)]
Add copyright notices.

14 years agoImplement support for libmodplug in Engine.Music.
Nick Bowler [Tue, 14 Jul 2009 23:41:52 +0000 (19:41 -0400)]
Implement support for libmodplug in Engine.Music.

14 years agouobject: Implement an interface for loading/unloading.
Nick Bowler [Mon, 13 Jul 2009 22:32:19 +0000 (18:32 -0400)]
uobject: Implement an interface for loading/unloading.

This allows, for example, an instance of Engine.Music to load its music
data only when required.  It may be useful to keep around an instance
without allocating gobs of memory to store data that won't be used.

14 years agoupkg: Don't forget to close the opened export.
Nick Bowler [Mon, 13 Jul 2009 02:51:10 +0000 (22:51 -0400)]
upkg: Don't forget to close the opened export.

14 years agomodule: improve error messages.
Nick Bowler [Mon, 13 Jul 2009 00:17:38 +0000 (20:17 -0400)]
module: improve error messages.

14 years agoupkg: Implement batch export.
Nick Bowler [Mon, 13 Jul 2009 00:17:12 +0000 (20:17 -0400)]
upkg: Implement batch export.

14 years agolibupkg: Remove the group stuff from upkg_export_class.
Nick Bowler [Mon, 13 Jul 2009 00:11:12 +0000 (20:11 -0400)]
libupkg: Remove the group stuff from upkg_export_class.

14 years agomodule: add missing return value to module_exit.
Nick Bowler [Sun, 12 Jul 2009 23:47:14 +0000 (19:47 -0400)]
module: add missing return value to module_exit.

14 years agomodule: Don't use G_TYPE_MODULE for casts in modcmp.
Nick Bowler [Sun, 12 Jul 2009 23:44:35 +0000 (19:44 -0400)]
module: Don't use G_TYPE_MODULE for casts in modcmp.

This causes problems since we pass ``fake'' GObjects in to avl_find.
Since everything we store in the AVL tree are properly pointers to
GTypeModule, simple assignment should be perfectly fine.

14 years agoupkg: Print usage info on stdout/stderr as appropriate.
Nick Bowler [Sat, 11 Jul 2009 04:47:29 +0000 (00:47 -0400)]
upkg: Print usage info on stdout/stderr as appropriate.

14 years agoupkg: Print package export info.
Nick Bowler [Sat, 11 Jul 2009 04:43:47 +0000 (00:43 -0400)]
upkg: Print package export info.

14 years agoupkg: Start implementing proper command line interface.
Nick Bowler [Fri, 10 Jul 2009 22:38:28 +0000 (18:38 -0400)]
upkg: Start implementing proper command line interface.

14 years agoupkg: Add gnulib getopt_long support and implement --help/--version.
Nick Bowler [Fri, 10 Jul 2009 21:52:42 +0000 (17:52 -0400)]
upkg: Add gnulib getopt_long support and implement --help/--version.

14 years agoSimplify music I/O.
Nick Bowler [Fri, 3 Jul 2009 21:25:25 +0000 (17:25 -0400)]
Simplify music I/O.

14 years agoMinor fixes.
Nick Bowler [Fri, 3 Jul 2009 19:23:50 +0000 (15:23 -0400)]
Minor fixes.

14 years agoFix pointer signedness issues in libupkg.
Nick Bowler [Fri, 3 Jul 2009 19:03:38 +0000 (15:03 -0400)]
Fix pointer signedness issues in libupkg.

14 years agoAdd missing header to Makefile.am.
Nick Bowler [Thu, 11 Jun 2009 22:06:59 +0000 (18:06 -0400)]
Add missing header to Makefile.am.

14 years agoUse GObject properties for stuff since it makes much more sense.
Nick Bowler [Thu, 11 Jun 2009 22:04:50 +0000 (18:04 -0400)]
Use GObject properties for stuff since it makes much more sense.

14 years agoFix another mistake in uobject's property parsing.
Nick Bowler [Thu, 11 Jun 2009 15:16:47 +0000 (11:16 -0400)]
Fix another mistake in uobject's property parsing.

14 years agoBegin work on Engine.Texture.
Nick Bowler [Wed, 10 Jun 2009 23:21:08 +0000 (19:21 -0400)]
Begin work on Engine.Texture.

14 years agoFix stupid mistakes in uobject.
Nick Bowler [Wed, 10 Jun 2009 23:20:24 +0000 (19:20 -0400)]
Fix stupid mistakes in uobject.

14 years agoReorganize object hierarchy to root at "UObject".
Nick Bowler [Wed, 10 Jun 2009 22:42:40 +0000 (18:42 -0400)]
Reorganize object hierarchy to root at "UObject".

Contrary to past belief, _every_ object serialization has a common header.
This removes the need for a specific serializable interface.

14 years agoFix upkg_export_seek to actually change the offset field.
Nick Bowler [Wed, 10 Jun 2009 22:34:44 +0000 (18:34 -0400)]
Fix upkg_export_seek to actually change the offset field.

14 years agoAdd simple sanity checks to Engine.Music export.
Nick Bowler [Wed, 10 Jun 2009 22:10:55 +0000 (18:10 -0400)]
Add simple sanity checks to Engine.Music export.

14 years agoAdd EOF notification to the upkg export API.
Nick Bowler [Wed, 10 Jun 2009 21:30:52 +0000 (17:30 -0400)]
Add EOF notification to the upkg export API.

14 years agoImplement the module class loader.
Nick Bowler [Tue, 9 Jun 2009 23:37:30 +0000 (19:37 -0400)]
Implement the module class loader.

14 years agoAdd required HEADERS to the Makefile.am.
Nick Bowler [Tue, 9 Jun 2009 22:51:09 +0000 (18:51 -0400)]
Add required HEADERS to the Makefile.am.

14 years agoImplement dynamic loading of modules.
Nick Bowler [Tue, 9 Jun 2009 22:49:37 +0000 (18:49 -0400)]
Implement dynamic loading of modules.

14 years agoEarly start of the module system.
Nick Bowler [Tue, 9 Jun 2009 19:23:10 +0000 (15:23 -0400)]
Early start of the module system.

14 years agoAdd libltdl.
Nick Bowler [Tue, 9 Jun 2009 03:50:16 +0000 (23:50 -0400)]
Add libltdl.

14 years agoInitial UObject implementation plus a dumb music extractor.
Nick Bowler [Mon, 8 Jun 2009 19:46:50 +0000 (15:46 -0400)]
Initial UObject implementation plus a dumb music extractor.

14 years agoImplement GUID handling.
Nick Bowler [Mon, 8 Jun 2009 20:41:46 +0000 (16:41 -0400)]
Implement GUID handling.

14 years agoStore the export name in the file structure.
Nick Bowler [Mon, 8 Jun 2009 19:26:32 +0000 (15:26 -0400)]
Store the export name in the file structure.

14 years agoImplement file positioning functions for upkg exports.
Nick Bowler [Mon, 8 Jun 2009 19:04:56 +0000 (15:04 -0400)]
Implement file positioning functions for upkg exports.

14 years agoExport the decode_index function from the upkg library.
Nick Bowler [Mon, 8 Jun 2009 19:03:38 +0000 (15:03 -0400)]
Export the decode_index function from the upkg library.

14 years agoImplement file reading API on exports.
Nick Bowler [Mon, 8 Jun 2009 16:53:53 +0000 (12:53 -0400)]
Implement file reading API on exports.

14 years agoAllocate upkg and private structs in one go.
Nick Bowler [Mon, 8 Jun 2009 05:35:00 +0000 (01:35 -0400)]
Allocate upkg and private structs in one go.

14 years agoAdd copyright and licensing info.
Nick Bowler [Sat, 6 Jun 2009 20:02:37 +0000 (16:02 -0400)]
Add copyright and licensing info.

14 years agoMove stuff into a separate source directory.
Nick Bowler [Sat, 6 Jun 2009 19:58:29 +0000 (15:58 -0400)]
Move stuff into a separate source directory.