Archive-Raw

 view release on metacpan or  search on metacpan

xs/Match.xs  view on Meta::CPAN

MODULE = Archive::Raw               PACKAGE = Archive::Raw::Match

Match
new (class)
	SV *class

	PREINIT:
		archive_raw_match *self;

	CODE:
		Newxz (self, 1, archive_raw_match);
		self->m = archive_match_new();
		if (self->m == NULL)
			croak ("archive_match_new() failed");

		RETVAL = self;

	OUTPUT: RETVAL

void
excluded (self, entry)
	Match self
	Entry entry

	PPCODE:
		if (archive_match_excluded (self->m, entry->e))
			XSRETURN_YES;

		XSRETURN_NO;

void
path_excluded (self, entry)
	Match self
	Entry entry

	PPCODE:
		if (archive_match_path_excluded (self->m, entry->e))
			XSRETURN_YES;

		XSRETURN_NO;

void
time_excluded (self, entry)
	Match self
	Entry entry

	PPCODE:
		if (archive_match_time_excluded (self->m, entry->e))
			XSRETURN_YES;

		XSRETURN_NO;

void
owner_excluded (self, entry)
	Match self
	Entry entry

	PPCODE:
		if (archive_match_owner_excluded (self->m, entry->e))
			XSRETURN_YES;

		XSRETURN_NO;

void
include_pattern (self, pattern)
	Match self
	const char *pattern

	PREINIT:
		int rc;

	CODE:
		rc = archive_match_include_pattern (self->m, pattern);
		archive_check_error (rc, self->m, archive_match_include_pattern);

void
include_pattern_from_file (self, file)
	Match self



( run in 0.862 second using v1.01-cache-2.11-cpan-5735350b133 )