Re: Using balsa_app in libbalsa ??



On 2001-04-30 09:53 Evrard Nicolas wrote:
> I need to use balsa_app in a function from libbalsa. But I don't know
> if it is recommended because there isn't a function in libbalsa that
> use balsa_app. Maybe I should pass the argument I need ??

The libbalsa part of code is supposed to be encapsulated and never
include any header files from src. The code structure can be illustrated
as

  |--------------------|
  |        src         |
  |    |---------------|
  |    |    libbalsa   |
  |    |  |------------|
  |    |  |  libmutt   |
  ----------------------

(similarly, libmutt code should not refer to any libbalsa or src code).

So, you should rather pass it as an argument, or redesign your code to
fit in this layer scheme.

/Pawel
-- 
Pawel Salek (pawsa@theochem.kth.se) http://www.theochem.kth.se/~pawsa/
Theoretical Chemistry Division, KTH voice: +46 8 790-8202





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