예제 #1
0
파일: context.c 프로젝트: PuzzleFlow/mupdf
static fz_id_context *
fz_keep_id_context(fz_context *ctx)
{
	if (!ctx)
		return NULL;
	return fz_keep_imp(ctx, ctx->id, &ctx->id->refs);
}
예제 #2
0
파일: output.c 프로젝트: HCLAC/mupdf
fz_output_context *
fz_keep_output_context(fz_context *ctx)
{
	if (!ctx)
		return NULL;
	return fz_keep_imp(ctx, ctx->output, &ctx->output->refs);
}
예제 #3
0
파일: text.c 프로젝트: mandeep57/mupdf
fz_text *
fz_keep_text(fz_context *ctx, const fz_text *textc)
{
	fz_text *text = (fz_text *)textc; /* Explicit cast away of const */

	return fz_keep_imp(ctx, text, &text->refs);
}
예제 #4
0
fz_colorspace_context *
fz_keep_colorspace_context(fz_context *ctx)
{
	if (!ctx)
		return NULL;
	return fz_keep_imp(ctx, ctx->colorspace, &ctx->colorspace->ctx_refs);
}
예제 #5
0
static void *
fz_keep_image_key(fz_context *ctx, void *key_)
{
    fz_image_key *key = (fz_image_key *)key_;
    return fz_keep_imp(ctx, key, &key->refs);
}
예제 #6
0
static fz_style_context *fz_keep_style_context(fz_context *ctx)
{
	if (!ctx)
		return NULL;
	return fz_keep_imp(ctx, ctx->style, &ctx->style->refs);
}
예제 #7
0
파일: cmapdump.c 프로젝트: HCLAC/mupdf
void *fz_keep_storable(fz_context *ctx, const fz_storable *sc)
{
	fz_storable *s = (fz_storable *)sc;
	return fz_keep_imp(ctx, s, &s->refs);
}
예제 #8
0
static fz_tuning_context *fz_keep_tuning_context(fz_context *ctx)
{
	if (!ctx)
		return NULL;
	return fz_keep_imp(ctx, ctx->tuning, &ctx->tuning->refs);
}
예제 #9
0
fz_stream *
fz_keep_stream(fz_context *ctx, fz_stream *stm)
{
	return fz_keep_imp(ctx, stm, &stm->refs);
}
예제 #10
0
파일: outline.c 프로젝트: JorjMcKie/mupdf
fz_outline *
fz_keep_outline(fz_context *ctx, fz_outline *outline)
{
	return fz_keep_imp(ctx, outline, &outline->refs);
}
예제 #11
0
fz_device *
fz_keep_device(fz_context *ctx, fz_device *dev)
{
	return fz_keep_imp(ctx, dev, &dev->refs);
}
예제 #12
0
파일: text.c 프로젝트: songtzu/mupdf-4
fz_text *
fz_keep_text(fz_context *ctx, fz_text *text)
{
	return fz_keep_imp(ctx, text, &text->refs);
}