bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/6] procfs: generalize the translator linkage code


From: Justus Winter
Subject: Re: [PATCH 4/6] procfs: generalize the translator linkage code
Date: Sun, 21 Sep 2014 18:30:38 +0200
User-agent: alot/0.3.5

Quoting Justus Winter (2014-09-21 12:12:34)
> Generalize the translator linkage code previously introduced for the
> `mounts' node.
> ...
> (ROOTDIR_DEFINE_TRANSLATED_NODE): New convenience macro to define
> translated nodes.
> ...
> +#define ROOTDIR_DEFINE_TRANSLATED_NODE(ARGZ)                     \
> +  &(struct procfs_translated_node_ops) {                         \
> +    .node_ops = {                                                \
> +      .get_translator = rootdir_translated_node_get_translator,          \
> +    },                                                           \
> +    .npp = &rootdir_mounts_node,                                 \
               ^ doh, that was rather stoopid :/
> +    .argz = (ARGZ),                                              \
> +    .argz_len = sizeof (ARGZ),                                   \
> +  }
> +



reply via email to

[Prev in Thread] Current Thread [Next in Thread]