Use word "library" in the source file headers
[libquvi.git] / src / api / errcode.c
bloba8151d161ae816f2872e35e8eaca4b0b14865e9b
1 /* quvi
2 * Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com>
4 * This file is part of quvi <http://quvi.sourceforge.net/>.
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General Public
17 * License along with this library. If not, see
18 * <http://www.gnu.org/licenses/>.
21 /** @file errcode.c */
23 #include "config.h"
25 #include <glib.h>
27 #include "quvi.h"
28 /* -- */
29 #include "_quvi_s.h"
31 /** @return Last library error code
32 @ingroup convenience
34 QuviError quvi_errcode(quvi_t handle)
36 _quvi_t q = (_quvi_t) handle;
38 if (handle == NULL)
39 return (QUVI_ERROR_INVALID_ARG);
41 return (q->status.rc);
44 /* vim: set ts=2 sw=2 tw=72 expandtab: */