1/* 2 * Broadcom Home Gateway Reference Design 3 * 4 * Copyright 2004, Broadcom Corporation 5 * All Rights Reserved. 6 * 7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY 8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM 9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS 10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. 11 * $Id: ezc.h,v 1.1.1.1 2008/10/15 03:31:22 james26_jang Exp $ 12 */ 13 14#ifndef _ezc_h_ 15#define _ezc_h_ 16 17#define EZC_VERSION_STR "2" 18 19#define EZC_FLAGS_READ 0x0001 20#define EZC_FLAGS_WRITE 0x0002 21 22#define EZC_SUCCESS 0 23#define EZC_ERR_NOT_ENABLED 1 24#define EZC_ERR_INVALID_STATE 2 25#define EZC_ERR_INVALID_DATA 3 26 27/* ezc function callback with two args: name and value */ 28typedef void (*ezc_cb_fn_t)(char *, char *); 29 30int ezc_register_cb(ezc_cb_fn_t fn); 31 32void do_apply_ezconfig_post(char *url, FILE *stream, int len, char *boundary); 33void do_ezconfig_asp(char *url, FILE *stream); 34 35#endif /* _ezc_h_ */ 36