capi

command
v0.47.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package main builds the embedded ClassAd log as a C archive: it exports C symbols (cadb_*) mirroring HTCondor's classad_log.h, so a C++ interface (built on libcondor_utils) can sit on top. Build:

go build -buildmode=c-archive -o libclassad_db.a ./capi

which also emits capi.h with these signatures.

Handles: a DB and a transaction are passed to C as opaque cgo.Handle values (uintptr_t). C never dereferences them; it only passes them back. Returned strings are C-allocated and must be released with cadb_free.

This is the minimal, correct surface; the wire-bytes zero-alloc PutClassAd path (cadb_new_classad_wire) is a planned addition once the collections store exposes a raw-wire ingest (see DESIGN.md).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL