Skip to content

Commit

Permalink
bump up to v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
takaswie committed May 18, 2020
1 parent dff280e commit 933ada2
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 38 deletions.
40 changes: 18 additions & 22 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# libhinawa

2019/10/12
2020/05/16
Takashi Sakamoto

## Instruction
Expand Down Expand Up @@ -105,35 +105,31 @@ qt5 - PyQt5 is required.

## How to make RPM package

1. archive all source code into libhinawa-1.4.5.tar.gz
$ git archive --format tar.gz --prefix='libhinawa-1.4.5/' 1.4.5 -o ~/rpmbuild/SOURCES/libhinawa-1.4.5.tar.gz
1. archive all source code into libhinawa-2.0.0.tar.gz
$ git archive --format tar.gz --prefix='libhinawa-2.0.0/' 2.0.0 -o ~/rpmbuild/SOURCES/libhinawa-2.0.0.tar.gz
2. rpmbuild -bb libhinawa.spec

## Future plan for libhinawa v2 and backward compatibility
## Lose of backward compatibility from v1 release.
* HinawaFwUnit
* This gobject class is planned to be an abstract class. Instead, any
derived class such as HinawaSndUnit should be used for instantiation.
* This gobject class is dropped. Instead, HinawaFwNode should be used
to communicate to the node on IEEE 1394 bus.
* HinawaFwReq/HinawaFwResp/HinawaFwFcp
* Any API with arguments for HinawaFwUnit is planned to be dropped. Instead,
use APIs with arguments for HinawaFwNode.
* Any API with arguments for GByteArray is planned to be dropped. Instead,
use APIs with arguments for guint8(buffer) and gsize(buffer length).
* Any API with arguments for HinawaFwUnit is dropped. Instead, use APIs
with arguments for HinawaFwNode.
* Any API with arguments for GByteArray is dropped. Instead, use APIs with
arguments for guint8(buffer) and gsize(buffer length).
* HinawaSndEfw/HinawaSndDice
* Any API with arguments for GArray is planned to be dropped. Instead, use
APIs with arguments for guint32(buffer) and gsize(buffer length).
* Any API with arguments for GArray is dropped. Instead, use APIs with
arguments for guint32(buffer) and gsize(buffer length).
* I/O thread
* No thread is planned to be launched internally for event dispatcher.
Instead, retrieve GSource from HinawaFwNode and HinawaSndUnit and use it
with GMainContext for event dispatcher. When no dispatcher runs, timeout
occurs for any transaction.
* No thread is launched internally for event dispatcher. Instead, retrieve
GSource from HinawaFwNode and HinawaSndUnit and use it with GMainContext
for event dispatcher. When no dispatcher runs, timeout occurs for any
transaction.
* Notifier thread
* No thread is planned to be launched internally for GObject signal notifier.
Instead, launch another thread for your notifier and delegate any
* No thread is launched internally for GObject signal notifier. Instead,
implement another thread for your notifier by your own and delegate any
transaction into it. This is required to prevent I/O thread to be stalled
because of waiting for an additional event of the transaction.

For backward compatibility, the deprecated APIs and features are kept during v1
period, however application developers should migrate to new APIs and implement
alternatives for the lost features.

end
5 changes: 4 additions & 1 deletion libhinawa.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: libhinawa
Version: 1.4.5
Version: 2.0.0
Release: 1%{?dist}
Summary: GObject introspection library for devices connected to IEEE 1394 bus

Expand Down Expand Up @@ -63,6 +63,9 @@ developing applications that use %{name}.


%changelog
* Thu May 20 2020 Takashi Sakamoto <[email protected]> - 2.0.0
- new upstream release.

* Thu May 11 2020 Takashi Sakamoto <[email protected]> - 1.4.5
- new upstream release.

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('libhinawa', 'c',
version: '1.4.5',
version: '2.0.0',
license: 'LGPL-2.1+',
meson_version: '>= 0.46.0',
)
Expand Down
2 changes: 1 addition & 1 deletion samples/gtk3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
gi.require_version('GLib', '2.0')
from gi.repository import GLib

gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

gi.require_version('Gtk', '3.0')
Expand Down
2 changes: 1 addition & 1 deletion samples/qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
gi.require_version('GLib', '2.0')
from gi.repository import GLib

gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

# Qt5 python binding
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pkg.generate(myself,
if get_option('gir')
gnome.generate_gir(myself,
sources: sources + headers,
nsversion: '2.0',
nsversion: '3.0',
namespace: 'Hinawa',
symbol_prefix: 'hinawa_',
identifier_prefix: 'Hinawa',
Expand Down
2 changes: 1 addition & 1 deletion tests/fw-fcp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.FwFcp()
Expand Down
2 changes: 1 addition & 1 deletion tests/fw-node
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.FwNode()
Expand Down
2 changes: 1 addition & 1 deletion tests/fw-req
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.FwReq()
Expand Down
2 changes: 1 addition & 1 deletion tests/fw-resp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.FwResp()
Expand Down
2 changes: 1 addition & 1 deletion tests/hinawa-enum
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

fw_tcode_enumerators = (
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-dg00x
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndDg00x()
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-dice
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndDice()
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-efw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndEfw()
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-motu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndMotu()
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-tscm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndTscm()
Expand Down
2 changes: 1 addition & 1 deletion tests/snd-unit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from errno import ENXIO
from helper import test

import gi
gi.require_version('Hinawa', '2.0')
gi.require_version('Hinawa', '3.0')
from gi.repository import Hinawa

target = Hinawa.SndUnit()
Expand Down

0 comments on commit 933ada2

Please sign in to comment.