New (yet inofficial) -find tests -has_hfs_crtp, has_hfs_bless
This commit is contained in:
@ -948,6 +948,51 @@ int Findjob_set_filter_filter(struct FindjoB *o, int value, int flag)
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_crtp_filter(struct FindjoB *o, char *creator, char *hfs_type,
|
||||
int flag)
|
||||
{
|
||||
struct ExprtesT *t;
|
||||
int ret;
|
||||
|
||||
ret= Findjob_default_and(o, 0);
|
||||
if(ret <= 0)
|
||||
return(ret);
|
||||
|
||||
t= o->cursor->test;
|
||||
t->test_type= 18;
|
||||
t->arg1= calloc(1, strlen(creator) + 1);
|
||||
t->arg2= calloc(1, strlen(hfs_type) + 1);
|
||||
if(t->arg1 == NULL || t->arg2 == NULL)
|
||||
return(-1);
|
||||
strcpy(t->arg1, creator);
|
||||
strcpy(t->arg2, hfs_type);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_bless_filter(struct XorrisO *xorriso, struct FindjoB *o,
|
||||
char *blessing, int flag)
|
||||
{
|
||||
struct ExprtesT *t;
|
||||
int ret;
|
||||
|
||||
ret= Findjob_default_and(o, 0);
|
||||
if(ret <= 0)
|
||||
return(ret);
|
||||
|
||||
t= o->cursor->test;
|
||||
t->test_type= 19;
|
||||
t->arg1= calloc(1, sizeof(int));
|
||||
if(t->arg1 == NULL)
|
||||
return(-1);
|
||||
ret= Xorriso_hfsplus_bless(xorriso, "", NULL, blessing, 4 | 8);
|
||||
if(ret <= 0)
|
||||
return(ret);
|
||||
*((int *) t->arg1)= ret - 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Findjob_set_wanted_node(struct FindjoB *o, void *wanted_node, int flag)
|
||||
{
|
||||
struct ExprtesT *t;
|
||||
|
Reference in New Issue
Block a user