/* Monolith discussion widget. * - by Richard W.M. Jones * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: ml_discussion.h,v 1.4 2003/02/22 15:34:29 rich Exp $ */ #ifndef ML_DISCUSSION_H #define ML_DISCUSSION_H #include struct ml_discussion; typedef struct ml_discussion *ml_discussion; /* Function: new_ml_discussion - monolith discussion widget * * This is the monolith discussion widget. It is a versatile, threaded * bulletin board system modelled loosely on Usenet. * * The schema for this widget can be found in * @code{sql/ml_discussion_create.sql}. * * @code{new_ml_discussion} creates a new discussion widget. @code{pool} * is the pool for allocations, @code{session} is the current session, and * @code{dhf} is a database handle factory. @code{res_name} is the name * of the newsgroup (from the @code{ml_resources} table). * * The function returns the discussion widget, or @code{NULL} if there * was a problem, such as the newgroup not existing. * * See also: @ref{new_ml_discussion_panel(3)}. */ extern ml_discussion new_ml_discussion (pool, ml_session, const char *conninfo, const char *res_name); #endif /* ML_DISCUSSION_H */