File: using_library.xml.in

package info (click to toggle)
parlatype 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,124 kB
  • sloc: ansic: 13,432; xml: 160; python: 134; sh: 37; makefile: 28
file content (29 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
  <!ENTITY apiversion "@API_VERSION@">
]>

<chapter id="using_library" xmlns:xi="http://www.w3.org/2003/XInclude">
  <title>Using the library</title>

  <para>
    Programs using libparlatype written in C can be compiled with GCC using:
    <literallayout>
      <literal>gcc `pkg-config --cflags parlatype` -o example example.c `pkg-config --libs parlatype`</literal>
    </literallayout>
  </para>

  <para>
    There are bindings for other languages, e.g. in Python Parlatype can be
    imported like this:
    <literallayout>
      <literal>gi.require_version('Parlatype', '&apiversion;')</literal>
      <literal>from gi.repository import Parlatype</literal>
    </literallayout>
  </para>

  <para>There is a glade catalog for PtWaveviewer so you can include it in your
  glade projects.</para>
</chapter>