On Tue, Sep 11, 2007 at 04:26:14PM +0000, Johannes Schindelin wrote:=20 It has nothing to do with latest. I feel that if for some reason transport_ops need a new function, it will break silentely, whereas if you use: static const struct transport_ops bundle_transport =3D { + .set_option =3D NULL, + .get_refs_list =3D &get_refs_from_bundle, + .fetch_refs =3D &fetch_refs_from_bundle, + .fetch_objs =3D NULL, + .push =3D NULL, + .disconnect =3D &close_bundle Or even: static const struct transport_ops bundle_transport =3D { + .get_refs_list =3D &get_refs_from_bundle, + .fetch_refs =3D &fetch_refs_from_bundle, + .disconnect =3D &close_bundle It's pretty straightforward to extend the transport_ops API, afaict it's what the kernel does e.g.. I wasn't suggesting anything else. --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org
| Linus Torvalds | Linux 2.6.21 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Josef 'Jeff' Sipek | [PATCH 02/24] lookup_one_len_nd - lookup_one_len with nameidata argument |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| David Miller | [PATCH]: Preliminary release of Sun Neptune driver |
