Diff for /embedaddon/mpd/src/vars.h between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 23:32:47 version 1.1.1.2, 2021/03/17 00:39:23
Line 5 Line 5
  * Written by Toshiharu OHNO <tony-o@iij.ad.jp>   * Written by Toshiharu OHNO <tony-o@iij.ad.jp>
  * Copyright (c) 1993, Internet Initiative Japan, Inc. All rights reserved.   * Copyright (c) 1993, Internet Initiative Japan, Inc. All rights reserved.
  * See ``COPYRIGHT.iij''   * See ``COPYRIGHT.iij''
 *  *
  * Rewritten by Archie Cobbs <archie@freebsd.org>   * Rewritten by Archie Cobbs <archie@freebsd.org>
  * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.   * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.
  * See ``COPYRIGHT.whistle''   * See ``COPYRIGHT.whistle''
Line 14 Line 14
 #ifndef _VARS_H_  #ifndef _VARS_H_
 #define _VARS_H_  #define _VARS_H_
   
   #include "defs.h"
   
 #include <sys/types.h>  #include <sys/types.h>
   
 /*  /*
Line 22 Line 24
   
 /* Describes one option */  /* Describes one option */
   
  struct confinfostruct confinfo {
  {        u_char  peered;                 /* Is accept/deny applicable? */
    u_char      peered;         /* Is accept/deny applicable? */        u_char  option;                 /* Option index (0 <= value < 16) */
    u_char      option;         /* Option index (0 <= value < 16) */        const char *name;          /* Textual name; NULL ends list */
    const char  *name;          /* Textual name; NULL ends list */};
  };typedef const struct confinfo *ConfInfo;
  typedef const struct confinfo *ConfInfo; 
   
 /* Generic option configuration structure */  /* Generic option configuration structure */
   
  struct optinfostruct optinfo {
  {        u_int32_t enable;         /* Options I want */
    u_int32_t   enable;         /* Options I want */        u_int32_t accept;         /* Options I'll allow */
    u_int32_t   accept;         /* Options I'll allow */};
  };typedef struct optinfo *Options;
  typedef struct optinfo        *Options; 
   
  #define Enable(c,x)           ((c)->enable |= (1<<(x)))#define Enable(c,x)             ((c)->enable |= (1<<(x)))
  #define Disable(c,x)          ((c)->enable &= ~(1<<(x)))#define Disable(c,x)            ((c)->enable &= ~(1<<(x)))
  #define Accept(c,x)           ((c)->accept |= (1<<(x)))#define Accept(c,x)             ((c)->accept |= (1<<(x)))
  #define Deny(c,x)             ((c)->accept &= ~(1<<(x)))#define Deny(c,x)               ((c)->accept &= ~(1<<(x)))
   
  #define Enabled(c,x)          (((c)->enable & (1<<(x))) != 0)#define Enabled(c,x)            (((c)->enable & (1<<(x))) != 0)
  #define Acceptable(c,x)       (((c)->accept & (1<<(x))) != 0)#define Acceptable(c,x)         (((c)->accept & (1<<(x))) != 0)
   
 /*  /*
  * FUNCTIONS   * FUNCTIONS
  */   */
   
  extern void   AcceptCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void AcceptCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   DenyCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void DenyCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   EnableCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void EnableCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   DisableCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void DisableCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   YesCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void YesCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   NoCommand(int ac, char *av[], Options opt, ConfInfo conf);extern void NoCommand(int ac, const char *const av[], Options opt, ConfInfo conf);
  extern void   OptStat(Context ctx, Options c, ConfInfo conf);extern void OptStat(Context ctx, Options c, ConfInfo conf);
   
 #endif  #endif
   

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>