modules/script/scriptdns.c File Reference

#include <eggdrop/eggdrop.h>
#include "egg_script_internal.h"

Go to the source code of this file.

Functions

static int script_dns_lookup (const char *host, script_callback_t *callback, char *text, int len)
static int script_dns_reverse (const char *ip, script_callback_t *callback, char *text, int len)

Variables

static const char rcsid [] = "$Id: scriptdns.c,v 1.3 2008-10-17 15:57:43 sven Exp $"
script_command_t script_dns_cmds []


Function Documentation

static int script_dns_lookup ( const char *  host,
script_callback_t callback,
char *  text,
int  len 
) [static]

Definition at line 27 of file scriptdns.c.

References egg_dns_lookup(), and script_dns_query().

00028 {
00029   return script_dns_query(egg_dns_lookup, host, callback, text, len);
00030 }

static int script_dns_reverse ( const char *  ip,
script_callback_t callback,
char *  text,
int  len 
) [static]

Definition at line 32 of file scriptdns.c.

References egg_dns_reverse(), and script_dns_query().

00033 {
00034   return script_dns_query(egg_dns_reverse, ip, callback, text, len);
00035 }


Variable Documentation

const char rcsid[] = "$Id: scriptdns.c,v 1.3 2008-10-17 15:57:43 sven Exp $" [static]

Definition at line 21 of file scriptdns.c.

Initial value:

 {
  {"dns", "lookup", script_dns_lookup, NULL, 2, "scsi", "host callback ?callbackdata? ?len?", SCRIPT_INTEGER, SCRIPT_VAR_ARGS}, 
  {"dns", "reverse", script_dns_reverse, NULL, 2, "scsi", "ip  callback ?callbackdata? ?len?", SCRIPT_INTEGER, SCRIPT_VAR_ARGS},  
  {"dns", "cancel", egg_dns_cancel, NULL, 1, "ii", "id ?docallback?", SCRIPT_INTEGER, SCRIPT_VAR_ARGS}, 
  {0}
}

Definition at line 37 of file scriptdns.c.


Generated on Sun Nov 30 18:43:36 2008 for eggdrop1.9 by  doxygen 1.5.6