All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: dccp@vger.kernel.org
Subject: Re: Towards the ccid-3 and ccid-4 integration
Date: Thu, 27 Sep 2007 08:19:53 +0000	[thread overview]
Message-ID: <200709270919.53474@strip-the-willow> (raw)
In-Reply-To: <5bc4c4570709241115u1254baa9j7033d1bdc9dc079@mail.gmail.com>

Quoting Tommi Saviranta:
|  >   1 - minor functions from ccid-3.c to ccid-3.h and include it (.h) in
|  > the ccid-4.c, as suggested by Ian and Arnaldo
|  >   2 - for more complex functions, write a dccp_ccid3_lib.ko, as
|  > suggested by arnaldo
|  
|  There is very little more to say about this, really. The code should and
|  needs to be shared. I just have this bad feeling that ccid3.c will
|  become nothing but a skeleton file that does all the work in
|  dccp_ccid3_lib.
|  
I have thought about this - and had an idea to eliminate one extra library:

 * use a .ko file for the functions called by both CCID3 and CCID4 as suggested by Arnaldo
 * but there is already dccp_tfrc_lib which hosts a major number of functions used by CCID3/4
 * hence I think that you could proceed by
	- add a CCID-3 specific object file to dccp_tfrc_lib-y in net/dccp/ccids/lib/Makefile
          (eg. ccid3_funcs.o or whatever)
	- the file could take the shared functions, ccid3.c could then be stripped to smaller functions
	  which wrap around the library functions
	- tfrc.h could take the declarations
 * this way one library less to look after.

Ian/Arnaldo may also have ideas or opinions on this.

  parent reply	other threads:[~2007-09-27  8:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24 18:15 Towards the ccid-3 and ccid-4 integration 
2007-09-24 21:35 ` 
2007-09-25  2:45 ` Ian McDonald
2007-09-25  9:01 ` Gerrit Renker
2007-09-26 13:41 ` Tommi Saviranta
2007-09-26 23:41 ` Ian McDonald
2007-09-26 23:51 ` 
2007-09-27  8:19 ` Gerrit Renker [this message]
2007-09-27  8:49 ` Ian McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709270919.53474@strip-the-willow \
    --to=gerrit@erg.abdn.ac.uk \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.