⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hwapi.cpp

📁 php-4.4.7学习linux时下载的源代码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "objectQuery"))					in->setObjectQuery((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_setCommittedVersion_In *make_HW_API_setCommittedVersion_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_setCommittedVersion_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_setCommittedVersion_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_revert_In *make_HW_API_revert_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_revert_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_revert_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "objectQuery"))					in->setObjectQuery((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_history_In *make_HW_API_history(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_history_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_history_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);/*				else if(!strcmp(key, "objectQuery"))					in->objectQuery((*keydata)->value.str.val);*/				break;			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_removeVersion_In *make_HW_API_removeVersion_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_removeVersion_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_removeVersion_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_freeVersion_In *make_HW_API_freeVersion_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_freeVersion_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_freeVersion_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_configurationHistory_In *make_HW_API_configurationHistory_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_configurationHistory_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_configurationHistory_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_saveConfiguration_In *make_HW_API_saveConfiguration_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_saveConfiguration_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_saveConfiguration_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				else if(!strcmp(key, "comment"))					in->setComment((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_restoreConfiguration_In *make_HW_API_restoreConfiguration_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_restoreConfiguration_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_restoreConfiguration_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_removeConfiguration_In *make_HW_API_removeConfiguration_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_removeConfiguration_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_removeConfiguration_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_mergeConfiguration_In *make_HW_API_mergeConfiguration_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_mergeConfiguration_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_mergeConfiguration_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_STRING:				if(!strcmp(key, "objectIdentifier"))					in->setObjectIdentifier((*keydata)->value.str.val);				else if(!strcmp(key, "version"))					in->setVersion((*keydata)->value.str.val);				break;			case IS_LONG:				if(!strcmp(key, "mode"))					in->setMode((*keydata)->value.lval);				break;		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_user_In *make_HW_API_user_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_user_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_user_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_userlist_In *make_HW_API_userlist_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_userlist_In *in;	lht = arg1->value.ht;	if(0 == (count = zend_hash_num_elements(lht))) {		return NULL;	}	in = new HW_API_userlist_In();	zend_hash_internal_pointer_reset(lht);	for(i=0; i<count; i++) {		ulong ind;		char *key;		zval **keydata;		zend_hash_get_current_data(lht, (void **) &keydata);		zend_hash_get_current_key(lht, &key, &ind, 0);		switch((*keydata)->type) {			case IS_ARRAY: {				HW_API_StringArray *sarr;				if(!strcmp(key, "attributeSelector")) {					sarr = make_HW_API_StringArray((*keydata)->value.ht);					in->setAttributeSelector(*sarr);					/* FIXME: sarr can be propperly be freed now */				}				break;			}		}		zend_hash_move_forward(lht);	}	return(in);}static HW_API_hwStat_In *make_HW_API_hwStat_In(zval *arg1) {	int count, i;	HashTable *lht;	HW_API_hwStat_In *in;	lht = arg1->value.ht;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -