示例#1
0
/* ----------------------------------------------------------------------
 * 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);
}
示例#2
0
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);
}
示例#3
0
/* ----------------------------------------------------------------------
 * 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);
}
示例#4
0
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;
}
示例#5
0
/* ----------------------------------------------------------------------
 * 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);
}
示例#6
0
static
uint32_t CC KHttpUndyingFileGetType(const KHttpUndyingFile *self)
{
    return KFileType(GetUnderlyingFile(self));
}
示例#7
0
static
uint32_t CC KBufWriteFileType ( const KBufWriteFile * self )
{
    return KFileType ( self -> f );
}
示例#8
0
文件: bzip.c 项目: mariux/sratoolkit
/* 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);
}