WinDom: fsel.h Source File

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

# fsel.h

Go to the documentation of this file.

    00001 /*
    00002  * WinDom: a high level GEM library
    00003  * Copyright (c) 1997-2006 windom authors (see AUTHORS file)
    00004  *
    00005  * This library is free software; you can redistribute it and/or
    00006  * modify it under the terms of the GNU Lesser General Public
    00007  * License as published by the Free Software Foundation; either
    00008  * version 2.1 of the License, or (at your option) any later version.
    00009  *
    00010  * This library is distributed in the hope that it will be useful,
    00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013  * Lesser General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU Lesser General Public
    00016  * License along with this library; if not, write to the Free Software
    00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    00018  *
    00019  * $Source: /cvsroot/windom/windom/src/fsel.h,v $
    00020  *
    00021  * CVS info:
    00022  *   $Author: bercegeay $
    00023  *   $Date: 2006/01/03 13:52:34 $
    00024  *   $Revision: 1.4 $
    00025  */
    00026
    00027
    00028 #ifndef __FSELLIB__
    00029 #define __FSELLIB__
    00030
    00031 #ifdef __GNUC__
    00032     #define DTA _DTA
    00033 #endif
    00034
    00035 /* Selectric */
    00036
    00037 #define CMD_FILES_OUT   0x01     /* return filelist */
    00038 #define CFG_ONESTRING   0x02     /* return list in one string */
    00039 #define CFG_FIRSTNEXT   0x08
    00040
    00041 #define FSEL_COOKIE     0x4653454CL     /* 'FSEL' */
    00042 #define SLCT_COOKIE     0x534C4354L     /* 'SLCT' */
    00043
    00044 typedef struct muf {
    00045    ULONG   id;                  /* Selectric ID (SLCT)     */
    00046    UWORD   version;             /* version (BCD-Format)    */
    00047    struct {
    00048       UWORD resved : 8;         /* reserved       */
    00049       UWORD pthsav : 1;         /* save GEMDOS paths    */
    00050       UWORD stdest : 1;         /* stay in destination path   */
    00051       UWORD autloc : 1;         /* auto-locator         */
    00052       UWORD numsrt : 1;         /* numsort        */
    00053       UWORD lower  : 1;         /* use lowercase letters   */
    00054       UWORD dclick : 1;         /* open folder on dclick   */
    00055       UWORD hidden : 1;         /* show hidden files    */
    00056       UWORD bypass : 1;         /* Selectric ON/OFF     */
    00057    } config;
    00058    WORD   sort;                 /* sort-mode (neg. = rev.) */
    00059    WORD   num_ext;              /* number of extensions    */
    00060    BYTE  *(*ext)[];             /* preset extensions    */
    00061    WORD   num_paths;            /* number of paths      */
    00062    BYTE  *(*paths)[];           /* preset paths         */
    00063    WORD   comm;                 /* communication word      */
    00064    WORD   in_count;             /* input counter     */
    00065    void  *in_ptr;               /* input pointer     */
    00066    WORD   out_count;            /* output counter    */
    00067    void  *out_ptr;              /* output pointer    */
    00068    WORD   __CDECL (*get_first)  ( DTA *dta, WORD attrib);
    00069    WORD   __CDECL (*get_next)   ( DTA *dta);
    00070    WORD   __CDECL (*release_dir)( void);
    00071 } SLCT_STR;
    00072
    00073 /* BoxKite 2.00 */
    00074
    00075 #define HBFS_COOKIE 0x48424653L /* 'HBFS' */
    00076 #define HBFS_MAGIC  0x42784B74L /* 'BxKt' */
    00077
    00078 typedef struct {
    00079     unsigned int    branch;     /* Sprungbefehl um den struct herum */
    00080     unsigned long   magic;      /* doit valoir 'BxKt' */
    00081     unsigned int    version;    /* Num‚ro de version (BCD format) */
    00082     long            resvd1;     /* reserviert */
    00083     long            resvd2;     /* reserviert */
    00084     long            resvd3;     /* reserviert */
    00085     long            resvd4;     /* reserviert */
    00086 } BXKT_STR;
    00087
    00088
    00089 #endif /* __FSELLIB__ */
    00090