Codebase list hydra / upstream/6.3 bfg.h
upstream/6.3

Tree @upstream/6.3 (Download .tar.gz)

bfg.h @upstream/6.3raw · history · blame

/*    (c) 2008 Jan Dlabal <dlabaljan@gmail.com>                               */

/*                                                                            */

/*     This file is part of the bfg.                                          */

/*                                                                            */

/*     bfgen is free software: you can redistribute it and/or modify          */

/*     it under the terms of the GNU General Public License as published by   */

/*     the Free Software Foundation, either version 3 of the License, or      */

/*     any later version.                                                     */

/*                                                                            */

/*     bfgen is distributed in the hope that it will be useful,               */

/*     but WITHOUT ANY WARRANTY; without even the implied warranty of         */

/*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          */

/*     GNU General Public License for more details.                           */

/*                                                                            */

/*     You should have received a copy of the GNU General Public License      */

/*     along with bfgen. If not, see <http://www.gnu.org/licenses/>.          */

#ifndef BF_H
#define BF_H

#define BF_NAME "bfg"
#define BF_VERSION "v0.3"
#define BF_YEAR "2009"
#define BF_WEBSITE "http://houbysoft.com/bfg/"

#define BF_BUFLEN 1024
#define BF_CHARSMAX 256         /* how many max possibilities there are for characters, normally it's 2^8 = 256 */

#define BF_LOWER 1
#define BF_UPPER 2
#define BF_NUMS 4

typedef struct {
  unsigned int crt;
  unsigned int max;
  unsigned int save[BF_CHARSMAX];
  char end;
  char last;
  char *arg;                    /* argument received for bfg commandline option */
  char *crs;                    /* internal representation of charset */
  char *ptr;
} bf_option;

extern bf_option bf_options;

#ifdef HAVE_MATH_H
extern int bf_generate();
extern int bf_get_pcount();
extern int bf_init(char *arg);
extern char *bf_next();
#endif

#endif