コード例 #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
ファイル: colorspace.c プロジェクト: ArtifexSoftware/mupdf
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
ファイル: image.c プロジェクト: ericyeh92094/mupdf-printer
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
ファイル: context.c プロジェクト: arbitrary-dev/mupdf
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
ファイル: context.c プロジェクト: arbitrary-dev/mupdf
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
ファイル: stream-open.c プロジェクト: TamirEvan/mupdf
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
ファイル: device.c プロジェクト: project-renard-survey/mupdf
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);
}