/* ***************************************************************************** * libg1m/eact.h -- libg1m e-activities header. * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey * * This file is part of libg1m. * libg1m is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3.0 of the License, * or (at your option) any later version. * * libg1m 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with libg1m; if not, see . * ************************************************************************** */ #ifndef LIBG1M_EACT_H # define LIBG1M_EACT_H # include /* ************************************************************************** */ /* E-activities line types */ /* ************************************************************************** */ typedef unsigned int g1m_eact_line_type_t; # define g1m_linetype_title 0x01 /* title */ # define g1m_linetype_text 0x02 /* text */ # define g1m_linetype_picture 0x04 /* (link to) picture */ # define g1m_linetype_eact 0x08 /* sub e-activity */ /* Line type aliases */ # define g1m_linetype_pict g1m_linetype_picture # define g1m_linetype_heading g1m_linetype_title # define g1m_linetype_standard_heading g1m_linetype_title /* ************************************************************************** */ /* E-activities line structure */ /* ************************************************************************** */ typedef struct g1m_line_s { int g1m_line_type; /* content */ char *g1m_line_content; /* subcontents */ int g1m_line_count; int g1m_line__size; struct g1m_line_s **g1m_line_lines; /* for subcontents */ char g1m_line_name[17]; } g1m_line_t; #endif /* LIBG1M_EACT_H */