コード例 #1
0
// @pymethod |PyIBackgroundCopyJob|AddFileSet|Description of AddFileSet.
PyObject *PyIBackgroundCopyJob::AddFileSet(PyObject *self, PyObject *args)
{
	IBackgroundCopyJob *pIBCJ = GetI(self);
	if ( pIBCJ == NULL )
		return NULL;
	// @pyparm [<o PyBG_FILE_INFO, ...]|pFileSet||Description for pFileSet
	PyObject *obFileSet;
	if ( !PyArg_ParseTuple(args, "O:AddFileSet", &obFileSet) )
		return NULL;
	ULONG cFileCount;
	BG_FILE_INFO *pFileSet;
	if (!PyObject_AsBG_FILE_INFO_LIST( obFileSet, &cFileCount, &pFileSet ))
		return NULL;
	HRESULT hr;
	PY_INTERFACE_PRECALL;
	hr = pIBCJ->AddFileSet( cFileCount, pFileSet );
	PyObject_FreeBG_FILE_INFO_LIST(cFileCount, pFileSet);
	PY_INTERFACE_POSTCALL;
	if ( FAILED(hr) )
		return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
	Py_INCREF(Py_None);
	return Py_None;

}