Move internal vapis to a separate directory
Now it's more maintainable and the config constants are made available
This commit is contained in:
52
vapi/c-api.vapi
Normal file
52
vapi/c-api.vapi
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* This file is part of matrix-glib-sdk
|
||||
*
|
||||
* matrix-glib-sdk 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 of the License, or (at your option) any later version.
|
||||
*
|
||||
* matrix-glib-sdk 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 matrix-glib-sdk. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
[CCode (cprefix = "Matrix", gir_namespace = "Matrix", gir_version = "0.0", lower_case_cprefix = "matrix_")]
|
||||
namespace Matrix {
|
||||
/**
|
||||
* The major version number of the Matrix.org GLib SDK.
|
||||
*/
|
||||
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MAJOR_VERSION")]
|
||||
public const int GLIB_MAJOR_VERSION;
|
||||
|
||||
/**
|
||||
* The micro (patch) version number of the Matrix.org GLib SDK.
|
||||
*/
|
||||
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MINOR_VERSION")]
|
||||
public const int GLIB_MINOR_VERSION;
|
||||
|
||||
/**
|
||||
* The minor version number of the Matrix.org GLib SDK.
|
||||
*/
|
||||
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MICRO_VERSION")]
|
||||
public const int GLIB_MICRO_VERSION;
|
||||
|
||||
/**
|
||||
* Check that the Matrix.org GLib SDK in use is compatible with
|
||||
* the given version.
|
||||
*
|
||||
* @param required_major the required major version
|
||||
* @param required_minor the required minor version
|
||||
* @param required_micro the required micro version
|
||||
* @return {{{true}}} if the required version is satisfied; {{{false}}} otherwise.
|
||||
*/
|
||||
[CCode (cheader_filename = "matrix-version.h", cname = "matrix_glib_check_version")]
|
||||
public bool glib_check_version(uint required_major,
|
||||
uint required_minor,
|
||||
uint required_micro);
|
||||
}
|
22
vapi/config.vapi
Normal file
22
vapi/config.vapi
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* This file is part of matrix-glib-sdk
|
||||
*
|
||||
* matrix-glib-sdk 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 of the License, or (at your option) any later version.
|
||||
*
|
||||
* matrix-glib-sdk 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 matrix-glib-sdk. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
|
||||
namespace Config {
|
||||
public const bool DEBUG;
|
||||
}
|
Reference in New Issue
Block a user