/***************************************************************************
 *   copyright           : (C) 2002 by Hendrik Sattler                     *
 *   mail                : post@hendrik-sattler.de                         *
 *                                                                         *
 *   This program 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 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef MEMTYPES_H
#define MEMTYPES_H

#include <stdio.h>

struct slot_range {
  char name[4];
  int min;
  int max;
};

/* The following always return a valid (NULL-terminated) list.
 * All list entry pointers and the list pointer itself are malloc'ed.
 */
struct slot_range** file_types_get (int mode);
char** pb_get_types (void);
char** sms_get_types (void);

void file_print_memlist (FILE* fd, unsigned int full);
void pbook_print_memlist (FILE* fd, unsigned int full);
void sms_print_memlist (FILE* fd, unsigned int full);

#endif
