home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Resource.h
- Author: Copyright © 1992, 1993 Jason Williams
- Version: 1.01 (15 Jul 1993)
- Purpose: Resource file (files within user application directory)
- management functions
- */
-
-
- #ifndef __dl_resource_h
- #define __dl_resource_h
-
-
- /* resource_pathname
- * This string is used as a prefix for all pathnames in DSEdit that load
- * resource files. It is set up by either of the following calls, to be either
- * "<Name$Dir>."
- * or
- * "Name:"
- * It is prepended to a leafname (e.g. <Floob$Dir>.Sprites or Floob:Sprites)
- * by some Desklib modules in order to find the resources.
- * (See Misc.c.ResInit, Misc.c.ResInitPth to see exactly what these very
- * simple functions do)
- */
-
- extern char resource_pathname[32];
-
-
- /* Resource_Initialise --------------------------------------------------
- * Initialises the resource manager. Pass in the name of your application
- * (e.g. if you have set <appname$Dir>, pass in "appname")
- * This tells all DeskLib modules where to look for your resources
- * by setting resource_pathname to "<Appname$Dir>." - this is prepended
- * to all leafnames to create full resource pathnames.
- * This pathname is used by various DeskLib modules (Template, Msgs, etc)
- * -it adds very little code size to your program, and saves you the
- * work of doing the pathname yourself. It also makes changing the
- * resource directory at a later development stage far easier.
- *
- * See also the ALTERNATIVE call, Resource_InitialisePath()
- */
- extern void Resource_Initialise(char *respath);
-
-
- /* Resource_InitialisePath ----------------------------------------------
- * Initialises the resource manager.
- *
- * If you prefer to use a path variable for your resources (for easier
- * setting of language resources), then you can initialise the resources
- * by calling this function.
- * (Instead of setting the resource prefix to "<AppName$Dir>.", it will
- * set it to "AppName:", where "AppName" is the 'respath' parameter)
- *
- * See also the ALTERNATIVE call, Resource_Initialise()
- */
- extern void Resource_InitialisePath(char *respath);
-
- #endif
-