mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
44c548b205
Original commit message from CVS: 2005-11-21 Andy Wingo <wingo@pobox.com> * *.h: * *.c: Ran scripts/update-macros. Oh yes. * gst/gstobject.h (GST_OBJECT_GET_LOCK, GST_OBJECT_LOCK) (GST_OBJECT_TRYLOCK, GST_OBJECT_UNLOCK): Renamed from GST_GET_LOCK, etc. * scripts/update-macros: New script. Run it on your files to change GST_LOCK to GST_OBJECT_LOCK, and the same for UNLOCK as well.
26 lines
549 B
Bash
Executable file
26 lines
549 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if test -z "$1" -o -n "$2"; then
|
|
echo "Usage: $0 FILE" >&2
|
|
exit 1
|
|
fi
|
|
|
|
file=$1
|
|
|
|
if grep -q GST_GET_LOCK $file; then
|
|
echo "$file: GST_GET_LOCK->GST_OBJECT_GET_LOCK"
|
|
perl -i -p -e 's/GST_GET_LOCK/GST_OBJECT_GET_LOCK/g' $file
|
|
fi
|
|
|
|
if egrep -q 'GST_LOCK' $file; then
|
|
echo "$file: GST_LOCK->GST_OBJECT_LOCK"
|
|
perl -i -p -e 's/GST_LOCK/GST_OBJECT_LOCK/g' $file
|
|
fi
|
|
|
|
if egrep -q 'GST_UNLOCK' $file; then
|
|
echo "$file: GST_UNLOCK->GST_OBJECT_UNLOCK"
|
|
perl -i -p -e 's/GST_UNLOCK/GST_OBJECT_UNLOCK/g' $file
|
|
fi
|
|
|