summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-04 19:48:15 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:30 -0500
commit1711ab4da336a78976c2211411e669a1b27bf947 (patch)
treef323d81031da7af7e74c9af45f65a0fbf333e712 /src/driver
parent413f560bf6f6c38fe141e3cab3c81996db83045b (diff)
downloadperk-1711ab4da336a78976c2211411e669a1b27bf947.tar.bz2
perk-1711ab4da336a78976c2211411e669a1b27bf947.tar.xz
API redesign 1/10: driver: rename struct pe_driver_ctx_impl to pe_driver_ctx_alloc.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/pe_driver_ctx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index 6699fcc..9daad39 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -41,7 +41,7 @@ static const struct argv_option options[] = {
{0}
};
-struct pe_driver_ctx_impl {
+struct pe_driver_ctx_alloc {
struct argv_meta * meta;
struct pe_symbol_ctx symctx;
struct pe_output_ctx outctx;
@@ -87,12 +87,12 @@ static int pe_driver_usage(
static struct pe_driver_ctx * pe_driver_ctx_alloc(struct argv_meta * meta, size_t nunits)
{
- struct pe_driver_ctx_impl * ictx;
+ struct pe_driver_ctx_alloc * ictx;
size_t size;
struct argv_entry * entry;
const char ** units;
- size = sizeof(struct pe_driver_ctx_impl);
+ size = sizeof(struct pe_driver_ctx_alloc);
size += (nunits+1)*sizeof(const char *);
if (!(ictx = calloc(size,1)))
@@ -225,7 +225,7 @@ static void pe_driver_close_fds(struct pe_common_ctx * cctx)
close(cctx->fdout);
}
-static void pe_free_driver_ctx_impl(struct pe_driver_ctx_impl * ictx)
+static void pe_free_driver_ctx_impl(struct pe_driver_ctx_alloc * ictx)
{
if (ictx->symctx.append)
free(ictx->symctx.append);
@@ -240,12 +240,12 @@ static void pe_free_driver_ctx_impl(struct pe_driver_ctx_impl * ictx)
void pe_free_driver_ctx(struct pe_driver_ctx * ctx)
{
- struct pe_driver_ctx_impl * ictx;
+ struct pe_driver_ctx_alloc * ictx;
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_impl,ctx);
- ictx = (struct pe_driver_ctx_impl *)addr;
+ addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_alloc,ctx);
+ ictx = (struct pe_driver_ctx_alloc *)addr;
pe_free_driver_ctx_impl(ictx);
}
}