Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adns 1.2 api breakage #2

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments
Closed

adns 1.2 api breakage #2

GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Originally submitted by mrueckert@suse.de

hi,

On 2006-05-31 11:15:27 +0100, Ian Jackson wrote:
> > Marcus Rueckert writes ("adns 1.2 api breakage"):
>> > > i just updated the adns package and it broke adns-python.
>> > > in adns.h you renamed adns__rrt_typemask to adns_rrt_typemask.
>> > > was this intentionally? if so i will mail my patch to the adns-python
>> > > author.
> > 
> > Yes.  This isn't written down anywhere, but the identifiers with `__'
> > in them are intended for private use inside adns and should probably
> > not be used by adns-python.  I made this change when I found that
> > software outside the adns library needed it to deal properly with the
> > new `unknown-by-adns rr type' feature; by renaming this identifier I
> > was declaring it public.
> > 
> > Are there other names with `__' that you're using ?

(i just see my editor fscked the pasting :| sorry for that. I will repaste it.)
[[[
$ grep adns__ *c
adnsmodule.c:   { "internalmask", adns__qf_internalmask },
adnsmodule.c:   { "deref", adns__qtf_deref },
adnsmodule.c:   { "mail822", adns__qtf_mail822 },
adnsmodule.c:   adns_rrtype td = answer->type & adns__qtf_deref;
]]]

On 2006-05-31 13:14:13 +0100, Ian Jackson wrote:
> > This doesn't look good.  In particular, it looks like this attempts to
> > compose query type codes from pieces.  This isn't supported by adns;
> > query codes other than the ones set up in adns.h may not work properly
> > and may even cause assertion failures, etc.

atm i build the python bindings with a small patch that renamed the 2
occurences of the adns__rrt_typemask. (patch attached and CC'ed the
author of the python bindings.)

thanks for your help so far.

    darix

Original issue reported on code.google.com by farcep...@gmail.com on 2 Dec 2006 at 5:54

Attachments:

@GoogleCodeExporter
Copy link
Author

Not applying this just yet. The patch currently breaks adns-1.1 and earlier.
Unfortunately there is no good or obvious way to detect the adns version at 
compile-time.

Original comment by farcep...@gmail.com on 2 Dec 2006 at 6:31

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Fixed in r9

Original comment by farcep...@gmail.com on 31 Dec 2006 at 6:08

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant