/* ---------------------------------------------------------------------- * Type * returns a KFileDesc * not intended to be a content type, * but rather an implementation class */ static uint32_t CC KWGAEncFileType (const KWGAEncFile *self) { assert (self != NULL); assert (self->encrypted != NULL); return KFileType (self->encrypted); }
static uint32_t CC KLoaderFile_Type(const KLoaderFile *self) { if( self && self->kfile ) { return KFileType(self->kfile); } return KDirectoryPathType(self ? self->dir : NULL, "%s", self->realname); }
/* ---------------------------------------------------------------------- * Type * returns a KFileDesc * not intended to be a content type, * but rather an implementation class */ static uint32_t CC KCounterFileType (const KCounterFile *self) { assert (self != NULL); assert (self->original != NULL); return KFileType (self->original); }
static rc_t init_ictx( struct ictx * ictx, const dump_context * ctx, const Args * args ) { rc_t rc = KFileMakeStdIn ( &( ictx->std_in ) ); DISP_RC( rc, "KFileMakeStdIn() failed" ); if ( rc == 0 ) { ictx->ctx = ctx; ictx->args = args; VectorInit( &ictx->history, 0, 10 ); ictx->interactive = ( KFileType ( ictx->std_in ) == kfdCharDev ); ictx->done = false; CONST_STRING( &(ictx->PROMPT), "\nvdb $" ); StringInit( &(ictx->SInputLine), &( ictx->inputline[0] ), sizeof( ictx->inputline ), 0 ); rc = vdp_init_ctx( &ictx->vsctx, args ); } return rc; }
/* ---------------------------------------------------------------------- * Type * returns a KFileDesc * not intended to be a content type, * but rather an implementation class */ static uint32_t CC KSubFileType (const KSubFile *self) { return KFileType (self->original); }
static uint32_t CC KHttpUndyingFileGetType(const KHttpUndyingFile *self) { return KFileType(GetUnderlyingFile(self)); }
static uint32_t CC KBufWriteFileType ( const KBufWriteFile * self ) { return KFileType ( self -> f ); }
/* Type * returns a KFileDesc * not intended to be a content type, * but rather an implementation class */ static uint32_t CC KBZipFileType (const KBZipFile *self) { return KFileType (self->file); }