[openib-general] [PATCH 1/6] libibverbs include files changes.
Roland Dreier
rdreier at cisco.com
Fri Jul 28 13:21:36 PDT 2006
Steve> Uh, won't that break binary compatibility? Or is that not
Steve> a requirement? IE: If you make the ibv_* names #defines,
Steve> then all apps will have to recompile to use the new lib.
Steve> If you leave them as the real names, then apps can still
Steve> link to the new lib and run ok...i think...
I don't think the names of structures matters for ABI compatibility --
if I have a header with
struct foo {
int a;
int b;
};
void blah(struct foo *z);
then a binary compiled against that will still work even if I later
change the name of struct foo so I have:
stuct bar {
int c;
int d;
};
void blah(struct bar *z);
after all the layout of struct foo and struct bar are the same.
- R.
More information about the general
mailing list