/***************************************************************************
*
* probe-network-printer.c : Probe for snmp printer device information
*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
*
**************************************************************************/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <libhal.h>
#include <logger.h>
#include "printer.h"
int
{
char *udi;
char *printer_address,
char **serial_number, char ***command_set,
char **device_uri);
goto out;
if (printer_address == NULL)
goto out;
community = "public";
setup_logger();
goto out;
HAL_DEBUG(("Cannot allocate changeset"));
goto out;
}
/* Probe the printer for characteristics via SNMP */
&device_uri);
if (ret < 0) {
HAL_DEBUG(("Cannot get snmp data for %s: %s",
goto out;
}
/* Add printer characteristics to the HAL device tree */
if (ret < 0) {
HAL_DEBUG(("Cannot add printer data for %s to %s: %s",
goto out;
}
ret = 0;
out:
}
if (dbus_error_is_set(&error)) {
}
}
return (ret);
}